summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/tst_qmltests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qmltests/tst_qmltests.cpp')
-rw-r--r--tests/auto/quick/qmltests/tst_qmltests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/tst_qmltests.cpp b/tests/auto/quick/qmltests/tst_qmltests.cpp
index 9bb45cdd7..d9be0a773 100644
--- a/tests/auto/quick/qmltests/tst_qmltests.cpp
+++ b/tests/auto/quick/qmltests/tst_qmltests.cpp
@@ -128,6 +128,9 @@ int main(int argc, char **argv)
sigaction(SIGSEGV, &sigAction, 0);
#endif
+ qputenv("QML2_IMPORT_PATH", QString(QDir(QT_TESTCASE_SOURCEDIR).canonicalPath() + "/mock-delegates").toUtf8());
+ // TODO: temporary solution. Remove when Quick Controls 1 is removed.
+ qputenv("QTWEBENGINE_DIALOG_SET", QByteArray("QtQuickControls2"));
QScopedPointer<Application> app;
// Force to use English language for testing due to error message checks