[weather] Improve ids of config page root items to match page name

parent 445b464a
......@@ -23,7 +23,7 @@ import org.kde.plasma.private.weather 1.0
ColumnLayout {
id: generalConfigPage
id: unitsConfigPage
signal configurationChanged
......@@ -74,7 +74,7 @@ ColumnLayout {
Layout.minimumWidth: units.gridUnit * 8
model: TemperatureUnitListModel
textRole: "display"
onCurrentIndexChanged: generalConfigPage.configurationChanged();
onCurrentIndexChanged: unitsConfigPage.configurationChanged();
}
QtControls.Label {
......@@ -91,7 +91,7 @@ ColumnLayout {
Layout.minimumWidth: units.gridUnit * 8
model: PressureUnitListModel
textRole: "display"
onCurrentIndexChanged: generalConfigPage.configurationChanged();
onCurrentIndexChanged: unitsConfigPage.configurationChanged();
}
QtControls.Label {
......@@ -108,7 +108,7 @@ ColumnLayout {
Layout.minimumWidth: units.gridUnit * 8
model: WindSpeedUnitListModel
textRole: "display"
onCurrentIndexChanged: generalConfigPage.configurationChanged();
onCurrentIndexChanged: unitsConfigPage.configurationChanged();
}
QtControls.Label {
......@@ -125,7 +125,7 @@ ColumnLayout {
Layout.minimumWidth: units.gridUnit * 8
model: VisibilityUnitListModel
textRole: "display"
onCurrentIndexChanged: generalConfigPage.configurationChanged();
onCurrentIndexChanged: unitsConfigPage.configurationChanged();
}
}
......
......@@ -25,7 +25,7 @@ import org.kde.plasma.private.weather 1.0
ColumnLayout {
id: generalConfigPage
id: weatherStationConfigPage
property alias selectedServices : serviceListModel.selectedServices
......@@ -103,7 +103,7 @@ ColumnLayout {
onToggled: {
model.checked = checked;
checked = Qt.binding(function() { return model.checked; });
generalConfigPage.configurationChanged();
weatherStationConfigPage.configurationChanged();
}
}
onObjectAdded: serviceSelectionMenu.insertItem(index, object)
......@@ -181,7 +181,7 @@ ColumnLayout {
onActivated: {
if (row !== -1) {
locationDisplay.setLocation(locationListModel.nameForListIndex(row));
generalConfigPage.configurationChanged();
weatherStationConfigPage.configurationChanged();
}
}
......@@ -214,7 +214,7 @@ ColumnLayout {
stepSize: 5
minimumValue: 30
maximumValue: 3600
onValueChanged: generalConfigPage.configurationChanged();
onValueChanged: weatherStationConfigPage.configurationChanged();
}
}
}
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