tst_qquickmenu: fail on warnings
Task-number: QTBUG-98718 Pick-to: 6.8 6.9 6.10 Change-Id: Idfedb0e9cb97833c7e144de7593cabf73522f88e Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
This commit is contained in:
parent
b300f909d7
commit
60e5d85921
|
@ -145,7 +145,7 @@ QVERIFY2(actualMenuItem == expectedMenuItem, \
|
||||||
.arg(QDebug::toString(actualMenuItem), QDebug::toString(expectedMenuItem))));
|
.arg(QDebug::toString(actualMenuItem), QDebug::toString(expectedMenuItem))));
|
||||||
|
|
||||||
tst_QQuickMenu::tst_QQuickMenu()
|
tst_QQuickMenu::tst_QQuickMenu()
|
||||||
: QQmlDataTest(QT_QMLTEST_DATADIR)
|
: QQmlDataTest(QT_QMLTEST_DATADIR, FailOnWarningsPolicy::FailOnWarnings)
|
||||||
{
|
{
|
||||||
std::unique_ptr<QPlatformMenu> platformMenu(QGuiApplicationPrivate::platformTheme()->createPlatformMenu());
|
std::unique_ptr<QPlatformMenu> platformMenu(QGuiApplicationPrivate::platformTheme()->createPlatformMenu());
|
||||||
nativeMenuSupported = platformMenu != nullptr;
|
nativeMenuSupported = platformMenu != nullptr;
|
||||||
|
|
Loading…
Reference in New Issue