aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-09-11 15:33:25 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-09-11 15:36:40 +0200
commit97bb0c50a079a73410f6a04c47d60010dacbb1fd (patch)
tree59236df5e295ce29e0d94a1640915bc7fc8d5bd7 /tests/auto
parentb3b4de89f81d10eb248a49e5fe3da175c2e2649e (diff)
parentc32c776bf4bd0bc601cb78f9814036cb40b33b52 (diff)
Merge remote-tracking branch 'origin/5.10' into dev
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/controls/data/tst_spinbox.qml6
-rw-r--r--tests/auto/controls/data/tst_textarea.qml16
-rw-r--r--tests/auto/controls/data/tst_tooltip.qml4
-rw-r--r--tests/auto/drawer/tst_drawer.cpp83
-rw-r--r--tests/auto/font/data/font-appwindow-custom.qml2
-rw-r--r--tests/auto/font/data/font-appwindow-default.qml2
-rw-r--r--tests/auto/font/data/font-control-custom.qml2
-rw-r--r--tests/auto/font/data/font-control-default.qml2
-rw-r--r--tests/auto/font/data/font-popup-custom.qml2
-rw-r--r--tests/auto/font/data/font-popup-default.qml2
-rw-r--r--tests/auto/font/data/inheritance-childcontrol.qml2
-rw-r--r--tests/auto/font/data/inheritance-childpopup.qml2
-rw-r--r--tests/auto/font/data/inheritance-control.qml2
-rw-r--r--tests/auto/font/data/inheritance-dynamicchildcontrol.qml2
-rw-r--r--tests/auto/font/data/inheritance-dynamicchildpopup.qml2
-rw-r--r--tests/auto/font/data/inheritance-dynamiccontrol.qml2
-rw-r--r--tests/auto/font/data/inheritance-dynamicpopup.qml2
-rw-r--r--tests/auto/font/data/inheritance-popup.qml2
-rw-r--r--tests/auto/font/data/listview.qml79
-rw-r--r--tests/auto/font/tst_font.cpp44
-rw-r--r--tests/auto/menu/data/actions.qml2
-rw-r--r--tests/auto/menu/data/popup.qml2
-rw-r--r--tests/auto/menu/data/removeTakeItem.qml2
-rw-r--r--tests/auto/menu/data/subMenus.qml2
-rw-r--r--tests/auto/palette/data/inheritance-childcontrol.qml2
-rw-r--r--tests/auto/palette/data/inheritance-childpopup.qml2
-rw-r--r--tests/auto/palette/data/inheritance-control.qml2
-rw-r--r--tests/auto/palette/data/inheritance-dynamicchildcontrol.qml2
-rw-r--r--tests/auto/palette/data/inheritance-dynamicchildpopup.qml2
-rw-r--r--tests/auto/palette/data/inheritance-dynamiccontrol.qml2
-rw-r--r--tests/auto/palette/data/inheritance-dynamicpopup.qml2
-rw-r--r--tests/auto/palette/data/inheritance-popup.qml2
-rw-r--r--tests/auto/palette/data/palette-appwindow-custom.qml2
-rw-r--r--tests/auto/palette/data/palette-appwindow-default.qml2
-rw-r--r--tests/auto/palette/data/palette-control-custom.qml2
-rw-r--r--tests/auto/palette/data/palette-control-default.qml2
-rw-r--r--tests/auto/palette/data/palette-popup-custom.qml2
-rw-r--r--tests/auto/palette/data/palette-popup-default.qml2
-rw-r--r--tests/auto/popup/data/closeOnEscapeWithNestedPopups.qml2
-rw-r--r--tests/auto/qquickcolor/data/tst_color.qml2
-rw-r--r--tests/auto/qquickiconimage/data/alignment.qml2
-rw-r--r--tests/auto/qquickiconimage/data/color.qml2
-rw-r--r--tests/auto/qquickiconimage/data/fileSelectors.qml2
-rw-r--r--tests/auto/qquickiconimage/data/nameBindingNoSizes.qml2
-rw-r--r--tests/auto/qquickiconimage/data/nameBindingSourceSize.qml2
-rw-r--r--tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml2
-rw-r--r--tests/auto/qquickiconimage/data/root.qml2
-rw-r--r--tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml2
-rw-r--r--tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml2
-rw-r--r--tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml2
-rw-r--r--tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml2
-rw-r--r--tests/auto/qquickiconimage/data/svgNoSizes.qml2
-rw-r--r--tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml2
-rw-r--r--tests/auto/qquickiconlabel/data/colorChanges.qml2
-rw-r--r--tests/auto/qquickiconlabel/data/iconlabel.qml2
-rw-r--r--tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml2
-rw-r--r--tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml2
-rw-r--r--tests/auto/qquickmenubar/data/empty.qml2
-rw-r--r--tests/auto/qquickmenubar/data/menubar.qml2
59 files changed, 283 insertions, 55 deletions
diff --git a/tests/auto/controls/data/tst_spinbox.qml b/tests/auto/controls/data/tst_spinbox.qml
index 54b81453..003468a1 100644
--- a/tests/auto/controls/data/tst_spinbox.qml
+++ b/tests/auto/controls/data/tst_spinbox.qml
@@ -559,4 +559,10 @@ TestCase {
mouseRelease(control.up.indicator, -1, -1)
verify(!control.up.pressed)
}
+
+ function test_initialValue() {
+ var control = createTemporaryObject(spinBox, testCase, {from: 1000, to: 10000})
+ verify(control)
+ compare(control.value, 1000)
+ }
}
diff --git a/tests/auto/controls/data/tst_textarea.qml b/tests/auto/controls/data/tst_textarea.qml
index 0b68edc9..7c47aa25 100644
--- a/tests/auto/controls/data/tst_textarea.qml
+++ b/tests/auto/controls/data/tst_textarea.qml
@@ -449,4 +449,20 @@ TestCase {
mouseClick(control, rect.x + rect.width / 2, rect.y + rect.height / 2)
compare(control.selectedText, "Qt Quick Controls 2 TextArea")
}
+
+ Component {
+ id: scrollView
+ ScrollView {
+ TextArea { }
+ }
+ }
+
+ function test_scrollView() {
+ var control = createTemporaryObject(scrollView, testCase)
+ verify(control)
+
+ // don't crash (QTBUG-62292)
+ control.destroy()
+ wait(0)
+ }
}
diff --git a/tests/auto/controls/data/tst_tooltip.qml b/tests/auto/controls/data/tst_tooltip.qml
index 1382655b..bd46fabd 100644
--- a/tests/auto/controls/data/tst_tooltip.qml
+++ b/tests/auto/controls/data/tst_tooltip.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtTest 1.0
import QtQuick.Controls 2.2
@@ -284,7 +284,7 @@ TestCase {
function test_activateShortcutWhileToolTipVisible() {
if ((Qt.platform.pluginName === "offscreen")
- || (Qt.platform.pluginName === "minimal"))
+ || (Qt.platform.pluginName === "minimal"))
skip("Mouse hoovering not functional on offscreen/minimal platforms")
var root = createTemporaryObject(buttonAndShortcutComponent, testCase)
diff --git a/tests/auto/drawer/tst_drawer.cpp b/tests/auto/drawer/tst_drawer.cpp
index d316e08f..0bfb3fc9 100644
--- a/tests/auto/drawer/tst_drawer.cpp
+++ b/tests/auto/drawer/tst_drawer.cpp
@@ -99,6 +99,9 @@ private slots:
void dragOverModalShadow_data();
void dragOverModalShadow();
+ void nonModal_data();
+ void nonModal();
+
private:
struct TouchDeviceDeleter
{
@@ -1136,6 +1139,86 @@ void tst_Drawer::dragOverModalShadow()
QVERIFY(!drawer->isVisible());
}
+void tst_Drawer::nonModal_data()
+{
+ QTest::addColumn<bool>("mouse");
+ QTest::newRow("mouse") << true;
+ QTest::newRow("touch") << false;
+}
+
+// QTBUG-59652
+void tst_Drawer::nonModal()
+{
+ QFETCH(bool, mouse);
+
+ QQuickApplicationHelper helper(this, QStringLiteral("window.qml"));
+ QQuickWindow *window = helper.window;
+ window->show();
+ QVERIFY(QTest::qWaitForWindowActive(window));
+
+ QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer *>();
+ QVERIFY(drawer);
+ drawer->setModal(false);
+
+ const QPoint from(1, 1);
+ const QPoint to(150, 1);
+
+ // drag to open
+ QSignalSpy openedSpy(drawer, SIGNAL(opened()));
+ QVERIFY(openedSpy.isValid());
+
+ if (mouse)
+ QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, from);
+ else
+ QTest::touchEvent(window, touchDevice.data()).press(0, from);
+
+ static const int steps = 10;
+ for (int i = 0; i < steps; ++i) {
+ int x = i * qAbs(from.x() - to.x()) / steps;
+ int y = i * qAbs(from.y() - to.y()) / steps;
+
+ if (mouse)
+ QTest::mouseMove(window, QPoint(x, y));
+ else
+ QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(x, y));
+ QTest::qWait(1); // avoid infinite velocity
+ }
+ QVERIFY(drawer->isVisible());
+
+ if (mouse)
+ QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, to);
+ else
+ QTest::touchEvent(window, touchDevice.data()).release(0, to);
+ QVERIFY(openedSpy.wait());
+
+ // drag to close
+ QSignalSpy closedSpy(drawer, SIGNAL(closed()));
+ QVERIFY(closedSpy.isValid());
+
+ if (mouse)
+ QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, to);
+ else
+ QTest::touchEvent(window, touchDevice.data()).press(0, to);
+
+ for (int i = steps - 1; i >= 0; --i) {
+ int x = i * qAbs(from.x() - to.x()) / steps;
+ int y = i * qAbs(from.y() - to.y()) / steps;
+
+ if (mouse)
+ QTest::mouseMove(window, QPoint(x, y));
+ else
+ QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(x, y));
+ QTest::qWait(1); // avoid infinite velocity
+ }
+ QVERIFY(drawer->isVisible());
+
+ if (mouse)
+ QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, from);
+ else
+ QTest::touchEvent(window, touchDevice.data()).release(0, from);
+ QVERIFY(closedSpy.wait());
+}
+
QTEST_MAIN(tst_Drawer)
#include "tst_drawer.moc"
diff --git a/tests/auto/font/data/font-appwindow-custom.qml b/tests/auto/font/data/font-appwindow-custom.qml
index 3d06f64a..e98b678e 100644
--- a/tests/auto/font/data/font-appwindow-custom.qml
+++ b/tests/auto/font/data/font-appwindow-custom.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/font-appwindow-default.qml b/tests/auto/font/data/font-appwindow-default.qml
index 02643c77..8337b488 100644
--- a/tests/auto/font/data/font-appwindow-default.qml
+++ b/tests/auto/font/data/font-appwindow-default.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/font-control-custom.qml b/tests/auto/font/data/font-control-custom.qml
index 92136e86..0121eca2 100644
--- a/tests/auto/font/data/font-control-custom.qml
+++ b/tests/auto/font/data/font-control-custom.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
Control {
diff --git a/tests/auto/font/data/font-control-default.qml b/tests/auto/font/data/font-control-default.qml
index 552c77d8..f3af36a2 100644
--- a/tests/auto/font/data/font-control-default.qml
+++ b/tests/auto/font/data/font-control-default.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
Control {
diff --git a/tests/auto/font/data/font-popup-custom.qml b/tests/auto/font/data/font-popup-custom.qml
index e8363a81..3982721e 100644
--- a/tests/auto/font/data/font-popup-custom.qml
+++ b/tests/auto/font/data/font-popup-custom.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
Popup {
diff --git a/tests/auto/font/data/font-popup-default.qml b/tests/auto/font/data/font-popup-default.qml
index 26c522c1..c4fab76a 100644
--- a/tests/auto/font/data/font-popup-default.qml
+++ b/tests/auto/font/data/font-popup-default.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
Popup {
diff --git a/tests/auto/font/data/inheritance-childcontrol.qml b/tests/auto/font/data/inheritance-childcontrol.qml
index 8a04dd52..7c2b0d0c 100644
--- a/tests/auto/font/data/inheritance-childcontrol.qml
+++ b/tests/auto/font/data/inheritance-childcontrol.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/inheritance-childpopup.qml b/tests/auto/font/data/inheritance-childpopup.qml
index ca5cdc82..304f0486 100644
--- a/tests/auto/font/data/inheritance-childpopup.qml
+++ b/tests/auto/font/data/inheritance-childpopup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/inheritance-control.qml b/tests/auto/font/data/inheritance-control.qml
index ac9c940a..fe555237 100644
--- a/tests/auto/font/data/inheritance-control.qml
+++ b/tests/auto/font/data/inheritance-control.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/inheritance-dynamicchildcontrol.qml b/tests/auto/font/data/inheritance-dynamicchildcontrol.qml
index 98c0f696..982b5611 100644
--- a/tests/auto/font/data/inheritance-dynamicchildcontrol.qml
+++ b/tests/auto/font/data/inheritance-dynamicchildcontrol.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/inheritance-dynamicchildpopup.qml b/tests/auto/font/data/inheritance-dynamicchildpopup.qml
index ef4fe60c..7af10af6 100644
--- a/tests/auto/font/data/inheritance-dynamicchildpopup.qml
+++ b/tests/auto/font/data/inheritance-dynamicchildpopup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/inheritance-dynamiccontrol.qml b/tests/auto/font/data/inheritance-dynamiccontrol.qml
index a261d600..263ad38d 100644
--- a/tests/auto/font/data/inheritance-dynamiccontrol.qml
+++ b/tests/auto/font/data/inheritance-dynamiccontrol.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/inheritance-dynamicpopup.qml b/tests/auto/font/data/inheritance-dynamicpopup.qml
index f0d567da..cd355682 100644
--- a/tests/auto/font/data/inheritance-dynamicpopup.qml
+++ b/tests/auto/font/data/inheritance-dynamicpopup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/inheritance-popup.qml b/tests/auto/font/data/inheritance-popup.qml
index b8415e63..3219a186 100644
--- a/tests/auto/font/data/inheritance-popup.qml
+++ b/tests/auto/font/data/inheritance-popup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/font/data/listview.qml b/tests/auto/font/data/listview.qml
new file mode 100644
index 00000000..dcd38751
--- /dev/null
+++ b/tests/auto/font/data/listview.qml
@@ -0,0 +1,79 @@
+/****************************************************************************
+**
+** Copyright (C) 2017 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** BSD License Usage
+** Alternatively, you may use this file under the terms of the BSD license
+** as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of The Qt Company Ltd nor the names of its
+** contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import QtQuick 2.9
+import QtQuick.Controls 2.2
+
+ApplicationWindow {
+ id: window
+ width: 200
+ height: 200
+
+ property alias listView: listView
+
+ font.pixelSize: 55
+
+ ListView {
+ id: listView
+ anchors.fill: parent
+ model: 1
+ delegate: Column {
+ property alias control: control
+ property alias label: label
+ property alias textarea: textarea
+ property alias textfield: textfield
+
+ Control { id: control }
+ Label { id: label }
+ TextArea { id: textarea }
+ TextField { id: textfield }
+ }
+ }
+}
diff --git a/tests/auto/font/tst_font.cpp b/tests/auto/font/tst_font.cpp
index b05cdcd8..660f4baf 100644
--- a/tests/auto/font/tst_font.cpp
+++ b/tests/auto/font/tst_font.cpp
@@ -62,6 +62,9 @@ private slots:
void defaultFont_data();
void defaultFont();
+
+ void listView_data();
+ void listView();
};
void tst_font::font_data()
@@ -286,6 +289,47 @@ void tst_font::defaultFont()
QCOMPARE(actualFont, *expectedFont);
}
+void tst_font::listView_data()
+{
+ QTest::addColumn<QString>("objectName");
+
+ QTest::newRow("Control") << "control";
+ QTest::newRow("Label") << "label";
+ QTest::newRow("TextArea") << "textarea";
+ QTest::newRow("TextField") << "textfield";
+}
+
+void tst_font::listView()
+{
+ QFETCH(QString, objectName);
+
+ QQmlEngine engine;
+ QQmlComponent component(&engine);
+ component.loadUrl(testFileUrl("listview.qml"));
+
+ QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(component.create()));
+ QVERIFY2(!window.isNull(), qPrintable(component.errorString()));
+
+ window->show();
+ QVERIFY(QTest::qWaitForWindowActive(window.data()));
+
+ QQuickItem *listView = window->property("listView").value<QQuickItem *>();
+ QVERIFY(listView);
+
+ QQuickItem *contentItem = listView->property("contentItem").value<QQuickItem *>();
+ QVERIFY(contentItem);
+
+ QVERIFY(QMetaObject::invokeMethod(listView, "forceLayout"));
+
+ QQuickItem *column = contentItem->childItems().value(0);
+ QVERIFY(column);
+
+ QQuickItem *control = column->property(objectName.toUtf8()).value<QQuickItem *>();
+ QVERIFY(control);
+
+ QCOMPARE(control->property("font").value<QFont>().pixelSize(), 55);
+}
+
QTEST_MAIN(tst_font)
#include "tst_font.moc"
diff --git a/tests/auto/menu/data/actions.qml b/tests/auto/menu/data/actions.qml
index 7cb1215c..0ec9f36c 100644
--- a/tests/auto/menu/data/actions.qml
+++ b/tests/auto/menu/data/actions.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {
diff --git a/tests/auto/menu/data/popup.qml b/tests/auto/menu/data/popup.qml
index 098ba6eb..6040e8ba 100644
--- a/tests/auto/menu/data/popup.qml
+++ b/tests/auto/menu/data/popup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {
diff --git a/tests/auto/menu/data/removeTakeItem.qml b/tests/auto/menu/data/removeTakeItem.qml
index 9a2914ed..89090fb6 100644
--- a/tests/auto/menu/data/removeTakeItem.qml
+++ b/tests/auto/menu/data/removeTakeItem.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {
diff --git a/tests/auto/menu/data/subMenus.qml b/tests/auto/menu/data/subMenus.qml
index f44d211f..49811bc2 100644
--- a/tests/auto/menu/data/subMenus.qml
+++ b/tests/auto/menu/data/subMenus.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {
diff --git a/tests/auto/palette/data/inheritance-childcontrol.qml b/tests/auto/palette/data/inheritance-childcontrol.qml
index 8a04dd52..7c2b0d0c 100644
--- a/tests/auto/palette/data/inheritance-childcontrol.qml
+++ b/tests/auto/palette/data/inheritance-childcontrol.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/palette/data/inheritance-childpopup.qml b/tests/auto/palette/data/inheritance-childpopup.qml
index ca5cdc82..304f0486 100644
--- a/tests/auto/palette/data/inheritance-childpopup.qml
+++ b/tests/auto/palette/data/inheritance-childpopup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/palette/data/inheritance-control.qml b/tests/auto/palette/data/inheritance-control.qml
index 860d9b0c..e5486edb 100644
--- a/tests/auto/palette/data/inheritance-control.qml
+++ b/tests/auto/palette/data/inheritance-control.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {
diff --git a/tests/auto/palette/data/inheritance-dynamicchildcontrol.qml b/tests/auto/palette/data/inheritance-dynamicchildcontrol.qml
index 98c0f696..982b5611 100644
--- a/tests/auto/palette/data/inheritance-dynamicchildcontrol.qml
+++ b/tests/auto/palette/data/inheritance-dynamicchildcontrol.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/palette/data/inheritance-dynamicchildpopup.qml b/tests/auto/palette/data/inheritance-dynamicchildpopup.qml
index ef4fe60c..7af10af6 100644
--- a/tests/auto/palette/data/inheritance-dynamicchildpopup.qml
+++ b/tests/auto/palette/data/inheritance-dynamicchildpopup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/palette/data/inheritance-dynamiccontrol.qml b/tests/auto/palette/data/inheritance-dynamiccontrol.qml
index a261d600..263ad38d 100644
--- a/tests/auto/palette/data/inheritance-dynamiccontrol.qml
+++ b/tests/auto/palette/data/inheritance-dynamiccontrol.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/palette/data/inheritance-dynamicpopup.qml b/tests/auto/palette/data/inheritance-dynamicpopup.qml
index f0d567da..cd355682 100644
--- a/tests/auto/palette/data/inheritance-dynamicpopup.qml
+++ b/tests/auto/palette/data/inheritance-dynamicpopup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/palette/data/inheritance-popup.qml b/tests/auto/palette/data/inheritance-popup.qml
index aceff6f2..e6ac0a3a 100644
--- a/tests/auto/palette/data/inheritance-popup.qml
+++ b/tests/auto/palette/data/inheritance-popup.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {
diff --git a/tests/auto/palette/data/palette-appwindow-custom.qml b/tests/auto/palette/data/palette-appwindow-custom.qml
index 90b07605..33139e48 100644
--- a/tests/auto/palette/data/palette-appwindow-custom.qml
+++ b/tests/auto/palette/data/palette-appwindow-custom.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {
diff --git a/tests/auto/palette/data/palette-appwindow-default.qml b/tests/auto/palette/data/palette-appwindow-default.qml
index 97376690..c071a0f4 100644
--- a/tests/auto/palette/data/palette-appwindow-default.qml
+++ b/tests/auto/palette/data/palette-appwindow-default.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {
diff --git a/tests/auto/palette/data/palette-control-custom.qml b/tests/auto/palette/data/palette-control-custom.qml
index eeefec3d..d3eb05bd 100644
--- a/tests/auto/palette/data/palette-control-custom.qml
+++ b/tests/auto/palette/data/palette-control-custom.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
Control {
diff --git a/tests/auto/palette/data/palette-control-default.qml b/tests/auto/palette/data/palette-control-default.qml
index 91f38843..b747d7e2 100644
--- a/tests/auto/palette/data/palette-control-default.qml
+++ b/tests/auto/palette/data/palette-control-default.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
Control {
diff --git a/tests/auto/palette/data/palette-popup-custom.qml b/tests/auto/palette/data/palette-popup-custom.qml
index 55b24fc9..3b7cec3d 100644
--- a/tests/auto/palette/data/palette-popup-custom.qml
+++ b/tests/auto/palette/data/palette-popup-custom.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
Popup {
diff --git a/tests/auto/palette/data/palette-popup-default.qml b/tests/auto/palette/data/palette-popup-default.qml
index 6cff3efd..f09feae0 100644
--- a/tests/auto/palette/data/palette-popup-default.qml
+++ b/tests/auto/palette/data/palette-popup-default.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
Popup {
diff --git a/tests/auto/popup/data/closeOnEscapeWithNestedPopups.qml b/tests/auto/popup/data/closeOnEscapeWithNestedPopups.qml
index 53dae0f9..f41516c8 100644
--- a/tests/auto/popup/data/closeOnEscapeWithNestedPopups.qml
+++ b/tests/auto/popup/data/closeOnEscapeWithNestedPopups.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.2
ApplicationWindow {
diff --git a/tests/auto/qquickcolor/data/tst_color.qml b/tests/auto/qquickcolor/data/tst_color.qml
index ab398ea4..fbd74e3c 100644
--- a/tests/auto/qquickcolor/data/tst_color.qml
+++ b/tests/auto/qquickcolor/data/tst_color.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtTest 1.0
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/alignment.qml b/tests/auto/qquickiconimage/data/alignment.qml
index e3ed3857..487ebfd0 100644
--- a/tests/auto/qquickiconimage/data/alignment.qml
+++ b/tests/auto/qquickiconimage/data/alignment.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/color.qml b/tests/auto/qquickiconimage/data/color.qml
index 39d94259..d6f647e6 100644
--- a/tests/auto/qquickiconimage/data/color.qml
+++ b/tests/auto/qquickiconimage/data/color.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/fileSelectors.qml b/tests/auto/qquickiconimage/data/fileSelectors.qml
index e3ed3857..487ebfd0 100644
--- a/tests/auto/qquickiconimage/data/fileSelectors.qml
+++ b/tests/auto/qquickiconimage/data/fileSelectors.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/nameBindingNoSizes.qml b/tests/auto/qquickiconimage/data/nameBindingNoSizes.qml
index 440e8d1f..d6c33bb3 100644
--- a/tests/auto/qquickiconimage/data/nameBindingNoSizes.qml
+++ b/tests/auto/qquickiconimage/data/nameBindingNoSizes.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/nameBindingSourceSize.qml b/tests/auto/qquickiconimage/data/nameBindingSourceSize.qml
index e3ed3857..487ebfd0 100644
--- a/tests/auto/qquickiconimage/data/nameBindingSourceSize.qml
+++ b/tests/auto/qquickiconimage/data/nameBindingSourceSize.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml b/tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml
index fe24e94a..c503d8cf 100644
--- a/tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml
+++ b/tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/root.qml b/tests/auto/qquickiconimage/data/root.qml
index ba65d9df..0a8b8db9 100644
--- a/tests/auto/qquickiconimage/data/root.qml
+++ b/tests/auto/qquickiconimage/data/root.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
Item {
width: 200
diff --git a/tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml b/tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml
index 51cf6498..33f4a2d3 100644
--- a/tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml
+++ b/tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml b/tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml
index f4fc424f..c246dc74 100644
--- a/tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml
+++ b/tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml b/tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml
index 65e9b5f7..ecbb7f6d 100644
--- a/tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml
+++ b/tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml b/tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml
index a3ea3323..f9e07899 100644
--- a/tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml
+++ b/tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/svgNoSizes.qml b/tests/auto/qquickiconimage/data/svgNoSizes.qml
index 40ae3247..17cccd26 100644
--- a/tests/auto/qquickiconimage/data/svgNoSizes.qml
+++ b/tests/auto/qquickiconimage/data/svgNoSizes.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml b/tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml
index da52c561..2387e98e 100644
--- a/tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml
+++ b/tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconlabel/data/colorChanges.qml b/tests/auto/qquickiconlabel/data/colorChanges.qml
index e60c32c8..6fc579f8 100644
--- a/tests/auto/qquickiconlabel/data/colorChanges.qml
+++ b/tests/auto/qquickiconlabel/data/colorChanges.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconlabel/data/iconlabel.qml b/tests/auto/qquickiconlabel/data/iconlabel.qml
index 7a1bafdf..97042107 100644
--- a/tests/auto/qquickiconlabel/data/iconlabel.qml
+++ b/tests/auto/qquickiconlabel/data/iconlabel.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml b/tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml
index 858f84b2..ccdb74e2 100644
--- a/tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml
+++ b/tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml b/tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml
index 82eb5aee..9015aa9d 100644
--- a/tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml
+++ b/tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.impl 2.3
diff --git a/tests/auto/qquickmenubar/data/empty.qml b/tests/auto/qquickmenubar/data/empty.qml
index 2ed46af0..6ed0a141 100644
--- a/tests/auto/qquickmenubar/data/empty.qml
+++ b/tests/auto/qquickmenubar/data/empty.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
MenuBar { }
diff --git a/tests/auto/qquickmenubar/data/menubar.qml b/tests/auto/qquickmenubar/data/menubar.qml
index d0d6300a..606dd92c 100644
--- a/tests/auto/qquickmenubar/data/menubar.qml
+++ b/tests/auto/qquickmenubar/data/menubar.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.9
+import QtQuick 2.10
import QtQuick.Controls 2.3
ApplicationWindow {