summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorninerider <qt-info@nokia.com>2009-11-23 12:09:56 (GMT)
committerninerider <qt-info@nokia.com>2009-11-23 12:09:56 (GMT)
commitcda63c368dbb5acd040e2190db8f25de69462d8e (patch)
tree55d6d05b82399e9911e2e193aaf4a1cc65ab933c /src/gui/widgets
parent7e7e3c3fe15780aa7d024e136acaf697ab49458c (diff)
downloadQt-cda63c368dbb5acd040e2190db8f25de69462d8e.zip
Qt-cda63c368dbb5acd040e2190db8f25de69462d8e.tar.gz
Qt-cda63c368dbb5acd040e2190db8f25de69462d8e.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
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qmenubar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qmenubar.cpp b/src/gui/widgets/qmenubar.cpp
index e50de02..377b39a 100644
--- a/src/gui/widgets/qmenubar.cpp
+++ b/src/gui/widgets/qmenubar.cpp
@@ -736,6 +736,9 @@ void QMenuBarPrivate::init()
if(wce_menubar)
q->hide();
}
+ else {
+ QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar, true);
+ }
#endif
#ifdef Q_WS_S60
symbianCreateMenuBar(q->parentWidget());