diff options
Diffstat (limited to 'examples/quickcontrols/imagine/automotive/qml/automotive.qml')
-rw-r--r-- | examples/quickcontrols/imagine/automotive/qml/automotive.qml | 51 |
1 files changed, 29 insertions, 22 deletions
diff --git a/examples/quickcontrols/imagine/automotive/qml/automotive.qml b/examples/quickcontrols/imagine/automotive/qml/automotive.qml index 5f7868e760..9ed2f5996d 100644 --- a/examples/quickcontrols/imagine/automotive/qml/automotive.qml +++ b/examples/quickcontrols/imagine/automotive/qml/automotive.qml @@ -113,7 +113,7 @@ ApplicationWindow { Item {} ColumnLayout { - spacing: 16 + spacing: 12 ButtonGroup { id: viewButtonGroup @@ -129,6 +129,7 @@ ApplicationWindow { Button { text: qsTr("Compact") font.pixelSize: fontSizeExtraSmall + checkable: true checked: true Layout.fillWidth: true @@ -156,13 +157,8 @@ ApplicationWindow { stepSize: 1 Layout.alignment: Qt.AlignHCenter - Layout.minimumWidth: 64 - Layout.minimumHeight: 64 Layout.preferredWidth: 128 Layout.preferredHeight: 128 - Layout.maximumWidth: 128 - Layout.maximumHeight: 128 - Layout.fillHeight: true Label { text: volumeDial.value.toFixed(0) @@ -177,7 +173,7 @@ ApplicationWindow { } RowLayout { - Layout.topMargin: 16 + Layout.topMargin: 8 LargeLabel { id: radioOption @@ -235,18 +231,18 @@ ApplicationWindow { } model: ListModel { - ListElement { name: "V-Radio"; frequency: "105.5 MHz" } - ListElement { name: "World News"; frequency: "93.4 MHz" } - ListElement { name: "TekStep FM"; frequency: "95.0 MHz" } - ListElement { name: "Classic Radio"; frequency: "89.9 MHz" } - ListElement { name: "Buena Vista FM"; frequency: "100.8 MHz" } - ListElement { name: "Drive-by Radio"; frequency: "99.1 MHz" } - ListElement { name: "Unknown #1"; frequency: "104.5 MHz" } - ListElement { name: "Unknown #2"; frequency: "91.2 MHz" } - ListElement { name: "Unknown #3"; frequency: "93.8 MHz" } - ListElement { name: "Unknown #4"; frequency: "80.4 MHz" } - ListElement { name: "Unknown #5"; frequency: "101.1 MHz" } - ListElement { name: "Unknown #6"; frequency: "92.2 MHz" } + ListElement { name: "V-Radio"; frequency: "105.5" } + ListElement { name: "World News"; frequency: "93.4" } + ListElement { name: "TekStep FM"; frequency: "95.0" } + ListElement { name: "Classic Radio"; frequency: "89.9" } + ListElement { name: "Buena Vista FM"; frequency: "100.8" } + ListElement { name: "Drive-by Radio"; frequency: "99.1" } + ListElement { name: "Unknown #1"; frequency: "104.5" } + ListElement { name: "Unknown #2"; frequency: "91.2" } + ListElement { name: "Unknown #3"; frequency: "93.8" } + ListElement { name: "Unknown #4"; frequency: "80.4" } + ListElement { name: "Unknown #5"; frequency: "101.1" } + ListElement { name: "Unknown #6"; frequency: "92.2" } } delegate: ItemDelegate { id: stationDelegate @@ -262,12 +258,16 @@ ApplicationWindow { text: model.name font: stationDelegate.font horizontalAlignment: Text.AlignLeft + elide: Text.ElideRight + Layout.fillWidth: true } Label { text: model.frequency font: stationDelegate.font horizontalAlignment: Text.AlignRight + elide: Text.ElideRight + Layout.fillWidth: true } } @@ -277,30 +277,32 @@ ApplicationWindow { Frame { Layout.fillWidth: true + Layout.fillHeight: false - RowLayout { + ColumnLayout { anchors.fill: parent Label { text: qsTr("Sort by") font.pixelSize: fontSizeExtraSmall - - Layout.alignment: Qt.AlignTop } ColumnLayout { RadioButton { text: qsTr("Name") font.pixelSize: fontSizeExtraSmall + Layout.fillWidth: false } RadioButton { text: qsTr("Frequency") font.pixelSize: fontSizeExtraSmall + Layout.fillWidth: false } RadioButton { text: qsTr("Favourites") font.pixelSize: fontSizeExtraSmall checked: true + Layout.fillWidth: false } } } @@ -535,6 +537,7 @@ ApplicationWindow { currentIndex: 1 Layout.fillHeight: true + Layout.fillWidth: false ButtonGroup { buttons: rightTabBarContentLayout.children @@ -559,6 +562,7 @@ ApplicationWindow { Layout.maximumHeight: navigationFeatureButton.height Layout.fillHeight: true + Layout.fillWidth: false } FeatureButton { text: qsTr("Air Con.") @@ -567,6 +571,7 @@ ApplicationWindow { Layout.maximumHeight: navigationFeatureButton.height Layout.fillHeight: true + Layout.fillWidth: false } FeatureButton { text: qsTr("Seats") @@ -574,6 +579,7 @@ ApplicationWindow { Layout.maximumHeight: navigationFeatureButton.height Layout.fillHeight: true + Layout.fillWidth: false } FeatureButton { text: qsTr("Statistics") @@ -581,6 +587,7 @@ ApplicationWindow { Layout.maximumHeight: navigationFeatureButton.height Layout.fillHeight: true + Layout.fillWidth: false } } } |