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:
Clinton Stimpson 2007-12-06 14:07:52 -05:00
parent 3944e268f4
commit 5d0f88ae22

View File

@ -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"));