diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-10-30 15:29:13 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-10-30 15:36:47 +0100 |
commit | 41e66ea6daa47d940365a458e7a12977bb32c690 (patch) | |
tree | 44affbaf9282e2451f080379a41522279264aabf /tests | |
parent | 3a851dfd4078b3ca9f9c1b06424b136cc6f852c5 (diff) | |
download | qtquickcontrols-41e66ea6daa47d940365a458e7a12977bb32c690.tar.gz |
Dialogs: FileDialog can only be modal on Windows
The autotest has been failing on Windows because of this.
Change-Id: I6ec42a256455d7a71a522fa7e75dc44f93b741ea
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/dialogs/tst_dialogs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/dialogs/tst_dialogs.cpp b/tests/auto/dialogs/tst_dialogs.cpp index 34af7e0c..acf04c5c 100644 --- a/tests/auto/dialogs/tst_dialogs.cpp +++ b/tests/auto/dialogs/tst_dialogs.cpp @@ -124,7 +124,11 @@ void tst_dialogs::fileDialogNonModal() QTest::mouseClick(window, Qt::LeftButton, 0, QPoint(1000, 100)); // hide QTRY_VERIFY(spyVisibilityChanged.count() > visibilityChangedCount); QCOMPARE(dlg->property("visible").toBool(), false); +#ifdef Q_OS_WIN + QCOMPARE(dlg->property("modality").toInt(), (int)Qt::ApplicationModal); +#else QCOMPARE(dlg->property("modality").toInt(), (int)Qt::NonModal); +#endif } void tst_dialogs::fileDialogNameFilters() |