From 466ca0ef282dbf4dcc09c40dad9a8d5917deaa68 Mon Sep 17 00:00:00 2001 From: Norwegian Rock Cat Date: Fri, 14 Aug 2009 12:25:09 +0200 Subject: 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 --- src/gui/kernel/qaction.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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. */ /*! -- cgit v0.12