Commit 37b437a0 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

fix UI value for majorOrientation

parent a50ef8d4
......@@ -86,9 +86,17 @@ Window {
Label { text: "majorOrientation:" }
SpinBox {
from: 0
to: 1
from: Qt.Horizontal
to: Qt.Vertical
value: tileListModel.majorOrientation
textFromValue: function(value) {
switch (value) {
case Qt.Horizontal:
return "H";
case Qt.Vertical:
return "V";
}
}
onValueModified: {
tileListModel.resetLayout(value, tileListModel.minorCounts);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment