summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qmenubar.cpp
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-07-06 09:24:21 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-07-06 09:24:21 (GMT)
commit423d40c56f090f3619c8df5667dcfcb0c0a0dc32 (patch)
tree432b4b8f9837a8021b5f2ff2e8bc34086983ac87 /src/gui/widgets/qmenubar.cpp
parent1737e24412ba3becd9b4a86bff3656281767564c (diff)
downloadQt-423d40c56f090f3619c8df5667dcfcb0c0a0dc32.zip
Qt-423d40c56f090f3619c8df5667dcfcb0c0a0dc32.tar.gz
Qt-423d40c56f090f3619c8df5667dcfcb0c0a0dc32.tar.bz2
doc: Added not about Mac OS X.
On Mac OS X, QMenuBar::clear() does not remove menu items that have been merged into the system menu bar. Task-number: 255222
Diffstat (limited to 'src/gui/widgets/qmenubar.cpp')
-rw-r--r--src/gui/widgets/qmenubar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/qmenubar.cpp b/src/gui/widgets/qmenubar.cpp
index e1d41de..caacc58 100644
--- a/src/gui/widgets/qmenubar.cpp
+++ b/src/gui/widgets/qmenubar.cpp
@@ -956,6 +956,13 @@ void QMenuBar::setActiveAction(QAction *act)
/*!
Removes all the actions from the menu bar.
+ \note On Mac OS X, menu items that have been merged to the system
+ menu bar are not removed by this function. One way to handle this
+ would be to remove the extra actions yourself. You can set the
+ \l{QAction::MenuRole}{menu role} on the different menus, so that
+ you know ahead of time which menu items get merged and which do
+ not. Then decide what to recreate or remove yourself.
+
\sa removeAction()
*/
void QMenuBar::clear()