Commit ffe50b16 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

[weather applet] Fix Appearance config page to follow HIG closer

Following "Group check boxes together in the widget column and add a label
describing the group in the label column."

Moving tooltip section into Compact Mode group also makes it more clear
which tooltip is meant here.
parent 28e9e896
......@@ -60,7 +60,7 @@ ColumnLayout {
Layout.fillWidth: true
flat: true
title: i18nc("@title:group", "Tooltip")
title: i18nc("@title:group", "Compact Mode")
GridLayout {
columns: 2
......@@ -69,15 +69,18 @@ ColumnLayout {
Layout.row: 0
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18nc("@label", "Show temperature:")
enabled: canShowMoreInCompactMode
text: i18nc("@label", "Display:")
}
QtControls.CheckBox {
id: showTemperatureInTooltipCheckBox
id: showTemperatureInCompactModeCheckBox
Layout.row: 0
Layout.column: 1
enabled: canShowMoreInCompactMode
text: i18nc("@option:check", "Show temperature")
onCheckedChanged: displayConfigPage.configurationChanged();
}
......@@ -85,76 +88,46 @@ ColumnLayout {
Layout.row: 1
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18nc("@label", "Show wind:")
text: i18nc("@label", "Tooltip:")
}
QtControls.CheckBox {
id: showWindInTooltipCheckBox
id: showTemperatureInTooltipCheckBox
Layout.row: 1
Layout.column: 1
text: i18nc("@option:check", "Show temperature")
onCheckedChanged: displayConfigPage.configurationChanged();
}
QtControls.Label {
Layout.row: 2
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18nc("@label", "Show pressure:")
}
QtControls.CheckBox {
id: showPressureInTooltipCheckBox
id: showWindInTooltipCheckBox
Layout.row: 2
Layout.column: 1
text: i18nc("@option:check", "Show wind")
onCheckedChanged: displayConfigPage.configurationChanged();
}
QtControls.Label {
Layout.row: 3
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18nc("@label", "Show humidity:")
}
QtControls.CheckBox {
id: showHumidityInTooltipCheckBox
id: showPressureInTooltipCheckBox
Layout.row: 3
Layout.column: 1
text: i18nc("@option:check", "Show pressure")
onCheckedChanged: displayConfigPage.configurationChanged();
}
}
}
QtControls1.GroupBox {
Layout.fillWidth: true
flat: true
title: i18nc("@title:group", "Compact Mode")
GridLayout {
columns: 2
QtControls.Label {
Layout.row: 0
Layout.column: 0
Layout.alignment: Qt.AlignRight
enabled: canShowMoreInCompactMode
text: i18nc("@label", "Show temperature:")
}
QtControls.CheckBox {
id: showTemperatureInCompactModeCheckBox
id: showHumidityInTooltipCheckBox
Layout.row: 0
Layout.row: 4
Layout.column: 1
enabled: canShowMoreInCompactMode
text: i18nc("@option:check", "Show humidity")
onCheckedChanged: displayConfigPage.configurationChanged();
}
}
......
Supports Markdown
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