diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2016-02-16 23:40:04 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2016-02-16 23:40:04 +0100 |
| commit | 07fb609095291f8d8544441925dea3d60d636f87 (patch) | |
| tree | f17f17badc7c0ad8f0147b8968bae91016244a97 /rockwork/PebblesPage.qml | |
| parent | e54ee938a3e637f654b393f41ce2ad123d448639 (diff) | |
Moved qml to subdir to unbundle
Diffstat (limited to 'rockwork/PebblesPage.qml')
| -rw-r--r-- | rockwork/PebblesPage.qml | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/rockwork/PebblesPage.qml b/rockwork/PebblesPage.qml deleted file mode 100644 index a973b0a..0000000 --- a/rockwork/PebblesPage.qml +++ /dev/null @@ -1,69 +0,0 @@ -import QtQuick 2.4 -import QtQuick.Layouts 1.1 -import Ubuntu.Components 1.3 - -Page { - title: i18n.tr("Manage Pebble Watches") - - head { - actions: [ - Action { - iconName: "settings" - onTriggered: { - onClicked: Qt.openUrlExternally("settings://system/bluetooth") - } - } - ] - } - - ListView { - anchors.fill: parent - model: pebbles - delegate: ListItem { - RowLayout { - anchors.fill: parent - anchors.margins: units.gu(1) - - ColumnLayout { - Layout.fillHeight: true - Layout.fillWidth: true - - Label { - text: model.name - } - - Label { - text: model.connected ? i18n.tr("Connected") : i18n.tr("Disconnected") - fontSize: "small" - } - } - } - - onClicked: { - var p = pebbles.get(index); - print("opening pebble:", p.name, p.hardwarePlatform) - pageStack.push(Qt.resolvedUrl("MainMenuPage.qml"), {pebble: pebbles.get(index)}) - } - } - } - - Column { - anchors.centerIn: parent - width: parent.width - units.gu(4) - spacing: units.gu(4) - visible: pebbles.count === 0 - - Label { - text: i18n.tr("No Pebble smartwatches configured yet. Please connect your Pebble smartwatch using System Settings.") - fontSize: "large" - width: parent.width - wrapMode: Text.WordWrap - } - - Button { - text: i18n.tr("Open System Settings") - anchors.horizontalCenter: parent.horizontalCenter - onClicked: Qt.openUrlExternally("settings://system/bluetooth") - } - } -} |
