tests: enforce Qt menubar in tst_QMenuBar::taskQTBUG56860_focus

... the same way other tests do in this file.

Change-Id: Ifcaee084bd20c55d6b9f7ddcf35daebce2a02e07
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
bb10
Gatis Paeglis 2017-10-27 11:10:13 +02:00
parent 70b0c127f0
commit f239dbe60a
1 changed files with 1 additions and 3 deletions

View File

@ -719,9 +719,7 @@ void tst_QMenuBar::taskQTBUG56860_focus()
#endif
QMainWindow w;
QMenuBar *mb = w.menuBar();
if (mb->platformMenuBar())
QSKIP("This test requires the Qt menubar.");
mb->setNativeMenuBar(false);
QMenu *em = mb->addMenu("&Edit");
em->setObjectName("EditMenu");