diff options
Diffstat (limited to 'app/qml')
| -rw-r--r-- | app/qml/pages/AboutPage.qml | 16 | ||||
| -rw-r--r-- | app/qml/pages/ManagerPage.qml | 2 | ||||
| -rw-r--r-- | app/qml/pages/WatchPage.qml | 41 |
3 files changed, 58 insertions, 1 deletions
diff --git a/app/qml/pages/AboutPage.qml b/app/qml/pages/AboutPage.qml index fec0fb5..a674b65 100644 --- a/app/qml/pages/AboutPage.qml +++ b/app/qml/pages/AboutPage.qml @@ -1,10 +1,17 @@ import QtQuick 2.0 import QtQml 2.1 import Sailfish.Silica 1.0 +import org.nemomobile.configuration 1.0 Page { id: page + ConfigurationGroup { + id: settings + path: "/org/pebbled/settings" + property bool debug + } + SilicaFlickable { id: flickable anchors.fill: parent @@ -130,6 +137,15 @@ Page { } onClicked: Qt.openUrlExternally("mailto:bugs@xiaoka.com?subject=pebbled issue&body=describe your issue here") } + TextSwitch { + text: qsTr("Debug Mode") + description: qsTr("Enable daemon and app debugging") + checked: settings.debug + automaticCheck: true + onClicked: { + settings.debug = !settings.debug; + } + } } } } diff --git a/app/qml/pages/ManagerPage.qml b/app/qml/pages/ManagerPage.qml index a69bc89..8ff0db2 100644 --- a/app/qml/pages/ManagerPage.qml +++ b/app/qml/pages/ManagerPage.qml @@ -147,7 +147,7 @@ Page { } TextSwitch { text: qsTr("Control main volume") - description: qsTr("Pebble music volume buttons change the main phone volume directly instead of through the music player.") + description: qsTr("Pebble music volume buttons change the main phone volume directly instead of through the music player") checked: settings.useSystemVolume automaticCheck: true onClicked: { diff --git a/app/qml/pages/WatchPage.qml b/app/qml/pages/WatchPage.qml index 730f850..3f5a5d6 100644 --- a/app/qml/pages/WatchPage.qml +++ b/app/qml/pages/WatchPage.qml @@ -1,12 +1,19 @@ import QtQuick 2.0 import QtQml 2.1 import Sailfish.Silica 1.0 +import org.nemomobile.configuration 1.0 Page { id: watchPage property bool firmwareVersionOK: app.firmwareVersion && app.firmwareVersion.indexOf("v1.") !== 0 + ConfigurationGroup { + id: settings + path: "/org/pebbled/settings" + property bool debug + } + SilicaFlickable { id: flickable anchors.fill: parent @@ -48,6 +55,40 @@ Page { onClicked: pebbled.time() } } + Row { + anchors { + left: parent.left + right: parent.right + margins: Theme.paddingLarge + } + + visible: settings.debug + Button { + text: qsTr("SMS") + width: parent.width / 5 + onClicked: pebbled.ping(128) + } + Button { + text: qsTr("E-Mail") + width: parent.width / 5 + onClicked: pebbled.ping(129) + } + Button { + text: qsTr("FB") + width: parent.width / 5 + onClicked: pebbled.ping(130) + } + Button { + text: qsTr("Twt") + width: parent.width / 5 + onClicked: pebbled.ping(131) + } + Button { + text: qsTr("Music") + width: parent.width / 5 + onClicked: pebbled.ping(132) + } + } Item { width: parent.width |
