diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-01-29 12:31:47 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-02 11:23:30 +0000 |
commit | 94fe5ab8a619d009d698214623b8a9b5e2746f1b (patch) | |
tree | 693d522701bb2a1ddd6a0292b3b34a93abe46a30 /tests | |
parent | ead40640d55ed0f96f84f54c627e870727d45d7d (diff) | |
download | qtquickcontrols-94fe5ab8a619d009d698214623b8a9b5e2746f1b.tar.gz |
Not update TabView.currentIndex when loader inserting
Autotest is included.
Task-number: QTBUG-43701
Change-Id: I60664d78988ee8d099e502e49711d69552e08312
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_tabview.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_tabview.qml b/tests/auto/controls/data/tst_tabview.qml index 9e556dd1..46df9177 100644 --- a/tests/auto/controls/data/tst_tabview.qml +++ b/tests/auto/controls/data/tst_tabview.qml @@ -443,6 +443,23 @@ TestCase { item.destroy() } + function test_43701() { + var test_tabView = ' \ + import QtQuick 2.2; \ + import QtQuick.Controls 1.3; \ + TabView { \ + id: tabView; \ + currentIndex: 2; \ + Tab {} Tab {} Tab {} \ + } ' + + var tabView = Qt.createQmlObject(test_tabView, testCase, '') + compare(tabView.count, 3) + compare(tabView.currentIndex, 2) + + tabView.destroy() + } + function printGeometry(control) { console.log("printGeometry:" + control) console.log("x=" + control.x + ",y=" + control.y + ",w=" + control.width + ",h=" + control.height) |