diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2014-07-09 01:55:13 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2014-07-09 01:57:32 +0200 |
| commit | 5c8b0d9b4f6ca7dc67c52040be30a0d60218cce9 (patch) | |
| tree | 5a74742fd2478989501e790498ac5843b52c2566 /app/qml/pages | |
| parent | 268e718a1d07c2a0202894a80d31a3df9f2633df (diff) | |
Implemented daemon interfaces for QML Manager app
Diffstat (limited to 'app/qml/pages')
| -rw-r--r-- | app/qml/pages/ManagerPage.qml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/app/qml/pages/ManagerPage.qml b/app/qml/pages/ManagerPage.qml index c042adc..f24fae7 100644 --- a/app/qml/pages/ManagerPage.qml +++ b/app/qml/pages/ManagerPage.qml @@ -53,7 +53,7 @@ Page { Label { color: Theme.highlightColor font.pixelSize: Theme.fontSizeSmall - visible: !pebbled.connected + visible: pebbled.active && !pebbled.connected text: qsTr("Waiting for watch...\nIf it can't be found plase check it's available and paired in Bluetooth settings.") wrapMode: Text.Wrap anchors { @@ -89,18 +89,14 @@ Page { description: pebbled.enabled ? qsTr("Automatic startup") : qsTr("Manual startup") checked: pebbled.enabled automaticCheck: false - onClicked: { - console.log('pebbled.(dis|en)able()'); - } + onClicked: pebbled.setEnabled(!checked) } TextSwitch { text: qsTr("Active") description: pebbled.active ? qsTr("Running") : qsTr("Dead") checked: pebbled.active automaticCheck: false - onClicked: { - console.log('pebbled.start|stop()'); - } + onClicked: pebbled.setActive(!checked) } TextSwitch { text: qsTr("Connection") |
