A GCC 4.8 build fix
Change-Id: Ic128486711118e1124739e8dca30547ab8ba9816 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
4d9375020c
commit
ca20b44959
@ -486,7 +486,7 @@ void tst_QApplication::lastWindowClosed()
|
|||||||
QPointer<QDialog> dialog = new QDialog;
|
QPointer<QDialog> dialog = new QDialog;
|
||||||
dialog->setWindowTitle(QLatin1String(QTest::currentTestFunction()) + QLatin1String("Dialog"));
|
dialog->setWindowTitle(QLatin1String(QTest::currentTestFunction()) + QLatin1String("Dialog"));
|
||||||
QVERIFY(dialog->testAttribute(Qt::WA_QuitOnClose));
|
QVERIFY(dialog->testAttribute(Qt::WA_QuitOnClose));
|
||||||
QTimer::singleShot(1000, dialog, &QDialog::accept);
|
QTimer::singleShot(1000, dialog.data(), &QDialog::accept);
|
||||||
dialog->exec();
|
dialog->exec();
|
||||||
QVERIFY(dialog);
|
QVERIFY(dialog);
|
||||||
QCOMPARE(spy.count(), 0);
|
QCOMPARE(spy.count(), 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user