summaryrefslogtreecommitdiff
path: root/tests/auto/controls/data/tst_tabview.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-04-07 10:32:37 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-07 12:12:35 +0200
commita3d87642cdebb32793258b6fe87c590ee5ceb3a5 (patch)
tree7097f4db25db90cfcf51dd7176bfd6b6b343097e /tests/auto/controls/data/tst_tabview.qml
parent783da20117857dbc840b9863f2cb4227773b338c (diff)
downloadqtquickcontrols-a3d87642cdebb32793258b6fe87c590ee5ceb3a5.tar.gz
Import QtQuick 2.2
Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'tests/auto/controls/data/tst_tabview.qml')
-rw-r--r--tests/auto/controls/data/tst_tabview.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/controls/data/tst_tabview.qml b/tests/auto/controls/data/tst_tabview.qml
index 635680ac..7c3b335f 100644
--- a/tests/auto/controls/data/tst_tabview.qml
+++ b/tests/auto/controls/data/tst_tabview.qml
@@ -38,7 +38,7 @@
**
****************************************************************************/
-import QtQuick 2.1
+import QtQuick 2.2
import QtTest 1.0
Item {
@@ -59,7 +59,7 @@ TestCase {
}
function test_repeater() {
- var tabView = Qt.createQmlObject('import QtQuick 2.1; import QtQuick.Controls 1.1; TabView { Repeater { model: 3; Tab { } } }', testCase, '');
+ var tabView = Qt.createQmlObject('import QtQuick 2.2; import QtQuick.Controls 1.1; TabView { Repeater { model: 3; Tab { } } }', testCase, '');
compare(tabView.count, 3)
tabView.destroy()
}
@@ -70,7 +70,7 @@ TestCase {
}
function test_changeIndex() {
- var tabView = Qt.createQmlObject('import QtQuick 2.1; import QtQuick.Controls 1.1; TabView { Repeater { model: 3; Tab { Text { text: index } } } }', testCase, '');
+ var tabView = Qt.createQmlObject('import QtQuick 2.2; import QtQuick.Controls 1.1; TabView { Repeater { model: 3; Tab { Text { text: index } } } }', testCase, '');
compare(tabView.count, 3)
verify(tabView.getTab(1).item == undefined)
tabView.currentIndex = 1
@@ -83,7 +83,7 @@ TestCase {
function test_addRemoveTab() {
- var tabView = Qt.createQmlObject('import QtQuick 2.1; import QtQuick.Controls 1.1; TabView { }', testCase, '');
+ var tabView = Qt.createQmlObject('import QtQuick 2.2; import QtQuick.Controls 1.1; TabView { }', testCase, '');
compare(tabView.count, 0)
tabView.addTab("title 1", newTab)
compare(tabView.count, 1)
@@ -161,7 +161,7 @@ TestCase {
}
function test_moveTab(data) {
- var tabView = Qt.createQmlObject('import QtQuick 2.1; import QtQuick.Controls 1.1; TabView { }', testCase, '');
+ var tabView = Qt.createQmlObject('import QtQuick 2.2; import QtQuick.Controls 1.1; TabView { }', testCase, '');
compare(tabView.count, 0)
var titles = ["title 1", "title 2", "title 3"]
@@ -193,7 +193,7 @@ TestCase {
function test_dynamicTabs() {
var test_tabView = ' \
- import QtQuick 2.1; \
+ import QtQuick 2.2; \
import QtQuick.Controls 1.1; \
TabView { \
id: tabView; \
@@ -225,7 +225,7 @@ TestCase {
function test_dynamicModel() {
var test_tabView = ' \
- import QtQuick 2.1; \
+ import QtQuick 2.2; \
import QtQuick.Controls 1.0; \
TabView { \
id: tabView; \
@@ -246,7 +246,7 @@ TestCase {
}
function test_mousePressOnTabBar() {
- var test_tabView = 'import QtQuick 2.1; \
+ var test_tabView = 'import QtQuick 2.2; \
import QtQuick.Controls 1.1; \
Column { \
property alias tabview: _tabview; \