aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickstyle/tst_qquickstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qquickstyle/tst_qquickstyle.cpp')
-rw-r--r--tests/auto/qquickstyle/tst_qquickstyle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qquickstyle/tst_qquickstyle.cpp b/tests/auto/qquickstyle/tst_qquickstyle.cpp
index e675d335..c9b7fdbd 100644
--- a/tests/auto/qquickstyle/tst_qquickstyle.cpp
+++ b/tests/auto/qquickstyle/tst_qquickstyle.cpp
@@ -78,7 +78,7 @@ void tst_QQuickStyle::loadControls()
QQmlEngine engine;
engine.addImportPath(dataDirectory());
QQmlComponent component(&engine);
- component.setData("import QtQuick 2.0; import QtQuick.Controls 2.1; Control { }", QUrl());
+ component.setData("import QtQuick; import QtQuick.Controls; Control { }", QUrl());
QScopedPointer<QObject> object(component.create());
QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
@@ -131,7 +131,7 @@ void tst_QQuickStyle::configurationFile()
QQmlEngine engine;
engine.addImportPath(":/data");
QQmlComponent labelComponent(&engine);
- labelComponent.setData("import QtQuick 2.0; import QtQuick.Controls 2.12; Label {}", QUrl());
+ labelComponent.setData("import QtQuick; import QtQuick.Controls; Label {}", QUrl());
QScopedPointer<QObject> object(labelComponent.create());
QVERIFY2(!object.isNull(), qPrintable(labelComponent.errorString()));