tst_QMenuBar: Remove obsolete warning check
This warning was removed when we refactored QCocoaMenuItem::sync().
This change amends 8412009de6
.
Task-number: QTBUG-68013
Change-Id: I0d65109dff5f82db530b6bdced96c05692af6b4b
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
194a404490
commit
8b098e6544
@ -1754,7 +1754,6 @@ void tst_QMenuBar::QTBUG_57404_existingMenuItemException()
|
||||
mb->addMenu(editMenu);
|
||||
QAction *copyAction = editMenu->addAction("&Copy");
|
||||
copyAction->setShortcut(QKeySequence("Ctrl+C"));
|
||||
QTest::ignoreMessage(QtWarningMsg, "Menu item \"&Copy\" has unsupported role QPlatformMenuItem::MenuRole(NoRole)");
|
||||
copyAction->setMenuRole(QAction::NoRole);
|
||||
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&mw2));
|
||||
|
Loading…
Reference in New Issue
Block a user