diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-05-13 10:39:05 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-05-13 10:39:05 (GMT) |
commit | fa976feb9408ebaa12570997471f63683bdb88a2 (patch) | |
tree | 9c2519e7e859516f5e1aae8b8a4d9ac64ce2b10a /tools | |
parent | a80130b07c5b8ee4b06eabbceb65eb23d4d4602e (diff) | |
parent | a45398677309ab905b69c599177b4c2951292b04 (diff) | |
download | Qt-fa976feb9408ebaa12570997471f63683bdb88a2.zip Qt-fa976feb9408ebaa12570997471f63683bdb88a2.tar.gz Qt-fa976feb9408ebaa12570997471f63683bdb88a2.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
X11: Keep the menubar inside the widgetbox window in toplevel mode
Retain ABI and API compatibility when Qt is built with EGL.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/designer/src/designer/qdesigner_workbench.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/designer/src/designer/qdesigner_workbench.cpp b/tools/designer/src/designer/qdesigner_workbench.cpp index ffc4b8c..df679eb 100644 --- a/tools/designer/src/designer/qdesigner_workbench.cpp +++ b/tools/designer/src/designer/qdesigner_workbench.cpp @@ -410,6 +410,9 @@ void QDesignerWorkbench::switchToDockedMode() switchToNeutralMode(); +#ifdef Q_WS_X11 + QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar, false); +#endif #ifndef Q_WS_MAC QDesignerToolWindow *widgetBoxWrapper = widgetBoxToolWindow(); widgetBoxWrapper->action()->setVisible(true); @@ -477,6 +480,14 @@ void QDesignerWorkbench::switchToTopLevelMode() // The widget box is special, it gets the menubar and gets to be the main widget. m_core->setTopLevel(widgetBoxWrapper); +#ifdef Q_WS_X11 + // For now the appmenu protocol does not make it possible to associate a + // menubar with all application windows. This means in top level mode you + // can only reach the menubar when the widgetbox window is active. Since + // this is quite inconvenient, better not use the native menubar in this + // configuration and keep the menubar in the widgetbox window. + QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar, true); +#endif #ifndef Q_WS_MAC widgetBoxWrapper->setMenuBar(m_globalMenuBar); widgetBoxWrapper->action()->setVisible(false); |