diff options
-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 |