summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetupDialog.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2007-12-06 19:07:52 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2007-12-06 19:07:52 (GMT)
commit5d0f88ae2267573627442a10a27419e282188e20 (patch)
tree91193b74b1708d4975935985a6e3de9e87533798 /Source/QtDialog/CMakeSetupDialog.cxx
parent3944e268f430e6e2e9dbf837d875d609b8bf3234 (diff)
downloadCMake-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/CMakeSetupDialog.cxx')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx2
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"));