summaryrefslogtreecommitdiff
path: root/sowatchui/qml
diff options
context:
space:
mode:
Diffstat (limited to 'sowatchui/qml')
-rw-r--r--sowatchui/qml/WatchPage.qml29
1 files changed, 14 insertions, 15 deletions
diff --git a/sowatchui/qml/WatchPage.qml b/sowatchui/qml/WatchPage.qml
index 59bb5c4..21c4543 100644
--- a/sowatchui/qml/WatchPage.qml
+++ b/sowatchui/qml/WatchPage.qml
@@ -73,38 +73,37 @@ Page {
GroupHeader {
width: parent.width
- text: "Watchlets"
+ text: "Notification sources"
visible: configQmlLoader.status === Loader.Ready
}
ListView {
- id: watchletsListView
+ id: providersListView
interactive: false
width: parent.width
height: UiConstants.ListItemHeightDefault * count
- model: ListModel {
- ListElement {
- title: "Test"
- }
+ model: ProvidersModel {
+ id: providersModel
+ configKey: watchPage.configKey + "/providers"
}
delegate: ListDelegate {
-
+ CheckBox {
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.right: parent.right
+ checked: model.enabled
+ onCheckedChanged: providersModel.setProviderEnabled(model.name, checked);
+ }
}
}
- Button {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Add watchlet")
- }
-
GroupHeader {
width: parent.width
- text: "Notification sources"
+ text: "Watchlets"
visible: configQmlLoader.status === Loader.Ready
}
ListView {
- id: providersListView
+ id: watchletsListView
interactive: false
width: parent.width
height: UiConstants.ListItemHeightDefault * count
@@ -120,7 +119,7 @@ Page {
Button {
anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Add notification source")
+ text: qsTr("Add new watchlet")
}
}
}