diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-10 14:02:07 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-10 14:02:07 +0200 |
commit | b9082fda48bb026fc4e6148efeba9aabf608373a (patch) | |
tree | f4f2c498adc8009d082aecc7df2458c2bcf99c15 /sowatchui/qml | |
parent | 3ca0764c683f8c6498b80f8d8410eca96cc9a793 (diff) | |
download | sowatch-b9082fda48bb026fc4e6148efeba9aabf608373a.tar.gz sowatch-b9082fda48bb026fc4e6148efeba9aabf608373a.zip |
NotificationProviders UI
Diffstat (limited to 'sowatchui/qml')
-rw-r--r-- | sowatchui/qml/WatchPage.qml | 29 |
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") } } } |