QMenuBar: Acknowledge AA_DontUseNativeMenuBar

Change-Id: I756f4181d66ef6e79ab7b7be8a23a10171a9f30c
Task-number: QTBUG-28960
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
bb10
Gabriel de Dietrich 2016-02-26 10:15:20 -08:00
parent 6f75c189e1
commit 717ff94639
1 changed files with 2 additions and 1 deletions

View File

@ -690,7 +690,8 @@ void QMenuBarPrivate::init()
q->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
q->setAttribute(Qt::WA_CustomWhatsThis);
platformMenuBar = QGuiApplicationPrivate::platformTheme()->createPlatformMenuBar();
if (!QApplication::instance()->testAttribute(Qt::AA_DontUseNativeMenuBar))
platformMenuBar = QGuiApplicationPrivate::platformTheme()->createPlatformMenuBar();
if (platformMenuBar)
q->hide();