QMenuBar: Acknowledge AA_DontUseNativeMenuBar
Change-Id: I756f4181d66ef6e79ab7b7be8a23a10171a9f30c Task-number: QTBUG-28960 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>bb10
parent
6f75c189e1
commit
717ff94639
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue