diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-08-14 10:25:09 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-08-14 10:25:09 (GMT) |
commit | 466ca0ef282dbf4dcc09c40dad9a8d5917deaa68 (patch) | |
tree | 4fbde93c564d2c8c380d62a9314f29864925ab13 | |
parent | 0fd4ecf10bf57d56cd50f3bd6aeff5af381cef26 (diff) | |
download | Qt-466ca0ef282dbf4dcc09c40dad9a8d5917deaa68.zip Qt-466ca0ef282dbf4dcc09c40dad9a8d5917deaa68.tar.gz Qt-466ca0ef282dbf4dcc09c40dad9a8d5917deaa68.tar.bz2 |
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
-rw-r--r-- | src/gui/kernel/qaction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qaction.cpp b/src/gui/kernel/qaction.cpp index f85f2ba..7f38471 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. */ /*! |