tst_QComboBox: ignore two warnings from setCompleter() in getSetCheck()
Tidies up the test output by removing expected warnings from the log (and alerting us if they're missing). Amends 64f6169f61ce8c982a1b92b20f930518a5f0d477, which introduced the warning. Pick-to: 6.9 6.8 6.5 5.15 Change-Id: Idcef99d556b11035307e6e207cf31fc2f13ed291 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
00fdf9e432
commit
e55479ea4a
@ -250,9 +250,11 @@ void tst_QComboBox::getSetCheck()
|
||||
|
||||
// QCompleter *QComboBox::completer()
|
||||
// void QComboBox::setCompleter(QCompleter *)
|
||||
QTest::ignoreMessage(QtWarningMsg, "Setting a QCompleter on non-editable QComboBox is not allowed.");
|
||||
obj1.setCompleter(nullptr);
|
||||
QCOMPARE(nullptr, obj1.completer());
|
||||
QCompleter completer;
|
||||
QTest::ignoreMessage(QtWarningMsg, "Setting a QCompleter on non-editable QComboBox is not allowed.");
|
||||
obj1.setCompleter(&completer);
|
||||
QVERIFY(obj1.completer() == nullptr); // no QLineEdit is set
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user