aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-12-06 20:53:17 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-06 21:46:37 -0800
commit53f38a24108d09dccbee37faf3bcdcb9750bbc87 (patch)
tree4efccab3b894bb7e74b50a97170839e44b96728c /qt-ui
parent9cb9dba7b6e927fec56ae87768520ee3f70082f0 (diff)
downloadsubsurface-53f38a24108d09dccbee37faf3bcdcb9750bbc87.tar.gz
Set the menuRole property on certain menu entry QActions
Telling Qt that the "Preferences" menu entry is QAction::PreferencesRole will make it be moved to the System menu on Mac, for example. Fixes #327 Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.ui9
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui
index 92432d547..5107b20cb 100644
--- a/qt-ui/mainwindow.ui
+++ b/qt-ui/mainwindow.ui
@@ -329,6 +329,9 @@
<property name="shortcut">
<string>Ctrl+,</string>
</property>
+ <property name="menuRole">
+ <enum>QAction::PreferencesRole</enum>
+ </property>
</action>
<action name="actionQuit">
<property name="text">
@@ -337,6 +340,9 @@
<property name="shortcut">
<string>Ctrl+Q</string>
</property>
+ <property name="menuRole">
+ <enum>QAction::QuitRole</enum>
+ </property>
</action>
<action name="actionDownloadDC">
<property name="text">
@@ -458,6 +464,9 @@
<property name="text">
<string>About Subsurface</string>
</property>
+ <property name="menuRole">
+ <enum>QAction::AboutRole</enum>
+ </property>
</action>
<action name="actionUserManual">
<property name="text">