Remove dead code from tst_QMessageBox::staticSourceCompat()
Remove if (0) clause. Task-number: QTBUG-118489 Pick-to: 6.5 Change-Id: Ie1c72e9c7cacb90d9e4d85763cd2f6967a7572cd Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 09eb99f0116b459a9ce5f720ee1a6d9715f157ad) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit b30f21468172f795798cbcccebee2e8a6d479230)
This commit is contained in:
parent
a9e435eb84
commit
88ba334429
@ -513,18 +513,6 @@ QT_WARNING_DISABLE_DEPRECATED
|
||||
ret = QMessageBox::information(nullptr, "title", "text", "Yes", "No", QString(), 1);
|
||||
QCOMPARE(ret, 1);
|
||||
QVERIFY(closeHelper.done());
|
||||
|
||||
if (0) { // don't run these tests since the dialog won't close!
|
||||
closeHelper.start(Qt::Key_Escape);
|
||||
ret = QMessageBox::information(nullptr, "title", "text", "Yes", "No", QString(), 1);
|
||||
QCOMPARE(ret, -1);
|
||||
QVERIFY(closeHelper.done());
|
||||
|
||||
closeHelper.start(Qt::Key_Escape);
|
||||
ret = QMessageBox::information(nullptr, "title", "text", "Yes", "No", QString(), 0, 1);
|
||||
QCOMPARE(ret, 1);
|
||||
QVERIFY(closeHelper.done());
|
||||
}
|
||||
#endif // QT_DEPRECATED_SINCE(6, 2)
|
||||
QT_WARNING_POP
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user