BUG: Prevent mapping of Configure to Preferences when Qt merges menu items with
the standard Mac OS X application menu.
This commit is contained in:
parent
3944e268f4
commit
5d0f88ae22
|
@ -100,6 +100,8 @@ CMakeSetupDialog::CMakeSetupDialog()
|
|||
|
||||
QMenu* ToolsMenu = this->menuBar()->addMenu(tr("&Tools"));
|
||||
this->ConfigureAction = ToolsMenu->addAction(tr("&Configure"));
|
||||
// prevent merging with Preferences menu item on Mac OS X
|
||||
this->ConfigureAction->setMenuRole(QAction::NoRole);
|
||||
QObject::connect(this->ConfigureAction, SIGNAL(triggered(bool)),
|
||||
this, SLOT(doConfigure()));
|
||||
this->GenerateAction = ToolsMenu->addAction(tr("&Generate"));
|
||||
|
|
Loading…
Reference in New Issue