diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-04-20 11:44:59 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-04-20 13:16:22 (GMT) |
commit | 327fabf8e8819b199aa24912ffe6893020b465d4 (patch) | |
tree | 305272c5ce4ac953b0c0127fc3a5ae92ee1e77af /tools/qdoc3/test/qt-html-templates.qdocconf | |
parent | 528ffd602cc5a501713cd768df0cf6870a36ddad (diff) | |
download | Qt-327fabf8e8819b199aa24912ffe6893020b465d4.zip Qt-327fabf8e8819b199aa24912ffe6893020b465d4.tar.gz Qt-327fabf8e8819b199aa24912ffe6893020b465d4.tar.bz2 |
Default (Parentless) QMenuBar actions do not work
This bug is a bit nasty. The problem is that Cocoa is trying
to be smart behind our back, and enable/disable menu items
depending on the menu item targets. But in Qt, we have a
different policy that Cocoa on when a menu bar should be
disabled or not. E.g. we allow a modal dialog to access the
application menu bar if it is the only window on screen.
This patch will work around cocoa being smart by setting the
menu item targets dynamically, depending on the modal state
of Qt. Setting it to nil will make the items enabled when there
is a modal dialog on screen, and setting it to the menu loader
will enable it when there is _no_ window on screen at all.
Task-number: QTBUG-9209
Reviewed-by: prasanth
Diffstat (limited to 'tools/qdoc3/test/qt-html-templates.qdocconf')
0 files changed, 0 insertions, 0 deletions