summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/dialogs/qprogressdialog/tst_qprogressdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/dialogs/qprogressdialog/tst_qprogressdialog.cpp')
-rw-r--r--tests/auto/widgets/dialogs/qprogressdialog/tst_qprogressdialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/widgets/dialogs/qprogressdialog/tst_qprogressdialog.cpp b/tests/auto/widgets/dialogs/qprogressdialog/tst_qprogressdialog.cpp
index f11fb1554c..aadc95e640 100644
--- a/tests/auto/widgets/dialogs/qprogressdialog/tst_qprogressdialog.cpp
+++ b/tests/auto/widgets/dialogs/qprogressdialog/tst_qprogressdialog.cpp
@@ -42,7 +42,7 @@
#include <QtTest/QtTest>
-#include <qcoreapplication.h>
+#include <qapplication.h>
#include <qdebug.h>
#include <qprogressdialog.h>
#include <qlabel.h>
@@ -53,6 +53,7 @@ class tst_QProgressDialog : public QObject
Q_OBJECT
private Q_SLOTS:
+ void cleanup();
void autoShow_data();
void autoShow();
void getSetCheck();
@@ -60,6 +61,11 @@ private Q_SLOTS:
void QTBUG_31046();
};
+void tst_QProgressDialog::cleanup()
+{
+ QVERIFY(QApplication::topLevelWindows().empty());
+}
+
void tst_QProgressDialog::autoShow_data()
{
QTest::addColumn<int>("min");