diff options
author | ninerider <qt-info@nokia.com> | 2009-11-23 12:09:56 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-11-23 12:41:21 (GMT) |
commit | 30c51abc4eefa9ccf4311d07100fe383df62bf32 (patch) | |
tree | 88347dbb53ee49126c0c397d58c44174aa9200eb | |
parent | fc5a9af7c6470646b82546ec2e5e37f68d4d238d (diff) | |
download | Qt-30c51abc4eefa9ccf4311d07100fe383df62bf32.zip Qt-30c51abc4eefa9ccf4311d07100fe383df62bf32.tar.gz Qt-30c51abc4eefa9ccf4311d07100fe383df62bf32.tar.bz2 |
WinCE: only use native menu bars for windows mobile
On Windows CE the native menubar must not be used.
The corresponding flag was never set for Windows CE.
Task-number: QT-2530
Reviewed-by: Maurice
(cherry picked from commit cda63c368dbb5acd040e2190db8f25de69462d8e)
-rw-r--r-- | src/gui/widgets/qmenubar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qmenubar.cpp b/src/gui/widgets/qmenubar.cpp index d09a357..2f5ab53 100644 --- a/src/gui/widgets/qmenubar.cpp +++ b/src/gui/widgets/qmenubar.cpp @@ -734,6 +734,9 @@ void QMenuBarPrivate::init() if(wce_menubar) q->hide(); } + else { + QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar, true); + } #endif #ifdef Q_WS_S60 symbianCreateMenuBar(q->parentWidget()); |