You're timer idea was simple enough and works fine except theres no short cuts. I guess that will work until Qt catches up with El Capitan. Thanks for the pointer.
For anyone interested this is what i did because i still build and run on Yosemite.
In the constructor...
#if defined Q_OS_MAC
if (QSysInfo::productVersion() == "10.11") { timer->setSingleShot(true);
connect(timer, SIGNAL(timeout()), this, SLOT(elCapitanMenuHack()));
timer->start(0);
}
#endif
#if defined Q_OS_MAC
if (QSysInfo::productVersion() == "10.11") {
QTimer *timer = new QTimer(this);
timer->setSingleShot(true);
connect(timer, SIGNAL(timeout()), this, SLOT(elCapitanMenuHack()));
timer->start(0);
}
#endif
To copy to clipboard, switch view to plain text mode
And then a private slot...
void MainWindow::elCapitanMenuHack() {
ui->menu_View->removeAction(ui->action_enter_full_screen);
ui->menu_View->removeAction(ui->action_exit_full_screen);
}
void MainWindow::elCapitanMenuHack() {
ui->menu_View->removeAction(ui->action_enter_full_screen);
ui->menu_View->removeAction(ui->action_exit_full_screen);
}
To copy to clipboard, switch view to plain text mode
Bookmarks