summaryrefslogtreecommitdiff
path: root/rockwork/FirmwareUpgradePage.qml
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2016-02-16 23:40:04 +0100
committerAndrew Branson <andrew.branson@cern.ch>2016-02-16 23:40:04 +0100
commit07fb609095291f8d8544441925dea3d60d636f87 (patch)
treef17f17badc7c0ad8f0147b8968bae91016244a97 /rockwork/FirmwareUpgradePage.qml
parente54ee938a3e637f654b393f41ce2ad123d448639 (diff)
Moved qml to subdir to unbundle
Diffstat (limited to 'rockwork/FirmwareUpgradePage.qml')
-rw-r--r--rockwork/FirmwareUpgradePage.qml58
1 files changed, 0 insertions, 58 deletions
diff --git a/rockwork/FirmwareUpgradePage.qml b/rockwork/FirmwareUpgradePage.qml
deleted file mode 100644
index 3281a12..0000000
--- a/rockwork/FirmwareUpgradePage.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-import QtQuick 2.4
-import Ubuntu.Components 1.3
-
-Page {
- id: root
- title: i18n.tr("Firmware upgrade")
-
- property var pebble: null
-
- Column {
- anchors.fill: parent
- anchors.margins: units.gu(1)
- spacing: units.gu(2)
-
- Label {
- text: i18n.tr("A new firmware upgrade is available for your Pebble smartwatch.")
- fontSize: "large"
- width: parent.width
- wrapMode: Text.WordWrap
- }
-
- Label {
- text: i18n.tr("Currently installed firmware: %1").arg("<b>" + root.pebble.softwareVersion + "</b>")
- width: parent.width
- wrapMode: Text.WordWrap
- }
-
- Label {
- text: i18n.tr("Candidate firmware version: %1").arg("<b>" + root.pebble.candidateVersion + "</b>")
- width: parent.width
- wrapMode: Text.WordWrap
- }
-
- Label {
- text: "<b>" + i18n.tr("Release Notes: %1").arg("</b><br>" + root.pebble.firmwareReleaseNotes)
- width: parent.width
- wrapMode: Text.WordWrap
- }
-
- Label {
- text: "<b>" + i18n.tr("Important:") + "</b> " + i18n.tr("This update will also upgrade recovery data. Make sure your Pebble smartwarch is connected to a power adapter.")
- width: parent.width
- wrapMode: Text.WordWrap
- visible: root.pebble.candidateVersion.indexOf("mig") > 0
- }
-
- Button {
- text: "Upgrade now"
- anchors.horizontalCenter: parent.horizontalCenter
- color: UbuntuColors.blue
- onClicked: {
- root.pebble.performFirmwareUpgrade();
- pageStack.pop();
- }
- }
- }
-}
-