diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-12-06 19:07:52 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-12-06 19:07:52 (GMT) |
commit | 5d0f88ae2267573627442a10a27419e282188e20 (patch) | |
tree | 91193b74b1708d4975935985a6e3de9e87533798 /Source/QtDialog | |
parent | 3944e268f430e6e2e9dbf837d875d609b8bf3234 (diff) | |
download | CMake-5d0f88ae2267573627442a10a27419e282188e20.zip CMake-5d0f88ae2267573627442a10a27419e282188e20.tar.gz CMake-5d0f88ae2267573627442a10a27419e282188e20.tar.bz2 |
BUG: Prevent mapping of Configure to Preferences when Qt merges menu items with
the standard Mac OS X application menu.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 73d8879..65e7890 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -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")); |