summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-08-14 12:25:09 +0200
committerNorwegian Rock Cat <qt-info@nokia.com>2009-08-14 12:25:09 +0200
commit466ca0ef282dbf4dcc09c40dad9a8d5917deaa68 (patch)
tree4fbde93c564d2c8c380d62a9314f29864925ab13 /src
parent0fd4ecf10bf57d56cd50f3bd6aeff5af381cef26 (diff)
Document QAction::MenuRole not working on submenus.
We could do it or we couldn't. It's simply a judgement call and I think the comments in the task are a good argument for NOT doing it. Task-number: 227875
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qaction.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qaction.cpp b/src/gui/kernel/qaction.cpp
index f85f2ba43..7f38471ee 100644
--- a/src/gui/kernel/qaction.cpp
+++ b/src/gui/kernel/qaction.cpp
@@ -254,6 +254,11 @@ void QActionPrivate::setShortcutEnabled(bool enable, QShortcutMap &map)
\c{Info.plist} file in the application's bundle (See \l{Deploying an Application on Mac OS X}).
\value PreferencesRole This action should be placed where the "Preferences..." menu item is in the application menu.
\value QuitRole This action should be placed where the Quit menu item is in the application menu.
+
+ Setting this value only has effect on items that are in the immediate menus
+ of the menubar, not the submenus of those menus. For example, if you have
+ File menu in your menubar and the File menu has a submenu, setting the
+ MenuRole for the actions in that submenu have no effect. They will never be moved.
*/
/*!