summaryrefslogtreecommitdiff
path: root/tests/manual
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2014-01-16 17:42:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-17 14:43:33 +0100
commit3339b974002da29f47d947e80ec951bda9da2b3e (patch)
tree32288158561cebd795a3643e80010a527a68f0cc /tests/manual
parentd3c935f52c48e2eb1440cd329eaa152c42d03c6f (diff)
downloadqtquickcontrols-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/manual')
-rw-r--r--tests/manual/baselines/main.qml9
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