diff options
author | Jan Arve Saether <jan-arve.saether@digia.com> | 2014-01-16 17:42:12 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-17 14:43:33 +0100 |
commit | 3339b974002da29f47d947e80ec951bda9da2b3e (patch) | |
tree | 32288158561cebd795a3643e80010a527a68f0cc /tests | |
parent | d3c935f52c48e2eb1440cd329eaa152c42d03c6f (diff) | |
download | qtquickcontrols-3339b974002da29f47d947e80ec951bda9da2b3e.tar.gz |
Set currentIndex of combobox to match defaultAlignment
Change-Id: Ie7ceaa9ddf66e3657c38773a242a7f88855b4f4a
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/baselines/main.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/manual/baselines/main.qml b/tests/manual/baselines/main.qml index 7f9b5509..d71930b4 100644 --- a/tests/manual/baselines/main.qml +++ b/tests/manual/baselines/main.qml @@ -149,6 +149,15 @@ ApplicationWindow { ListElement { text: "Align Bottom"; value: Qt.AlignBottom } ListElement { text: "Align VCenter"; value: Qt.AlignVCenter } } + Component.onCompleted: { + for (var i = 0; i < cbItems.count; ++i) { + var v = cbItems.get(i).value; + if (v == defaultAlignment) { + currentIndex = i; + break; + } + } + } onCurrentIndexChanged: { // assumes mainLayout/GroupBox/Layout/<child_items> hierarchy // Iterates over all <child_items> and modifies their baseline alignment |