diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-19 18:22:40 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-23 03:20:58 +0900 |
commit | 5739294c07b97d2d4497b3203b0592cee5dbda9d (patch) | |
tree | 0a581739480e905931b1edcf69ad43692c4f0f07 /mobile-widgets/qml | |
parent | 72c5125b2ecd7b4cd4eddaa88f50c8698a20eed8 (diff) | |
download | subsurface-5739294c07b97d2d4497b3203b0592cee5dbda9d.tar.gz |
QML UI: add icons to the dive management sub-menu
The title says it all.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 49201e15d..f5a80edb2 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -134,6 +134,7 @@ Kirigami.ApplicationWindow { iconName: "icons/ic_sync.svg" text: qsTr("Dive managment") Kirigami.Action { + iconName: "icons/ic_add.svg" text: qsTr("Add dive manually") enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD onTriggered: { @@ -142,6 +143,7 @@ Kirigami.ApplicationWindow { } } Kirigami.Action { + iconName: "icons/downloadDC.svg" text: qsTr("Download from DC") enabled: true onTriggered: { @@ -150,12 +152,14 @@ Kirigami.ApplicationWindow { } } Kirigami.Action { + iconName: "icons/ic_add_location.svg" text: qsTr("Apply GPS Fixes") onTriggered: { manager.applyGpsData(); } } Kirigami.Action { + iconName: "icons/cloud_sync.svg" text: qsTr("Manual sync with cloud") enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD onTriggered: { @@ -174,6 +178,7 @@ Kirigami.ApplicationWindow { } } Kirigami.Action { + iconName: syncToCloud ? "icons/ic_cloud_off.svg" : "icons/ic_cloud_done.svg" text: syncToCloud ? qsTr("Offline mode") : qsTr("Enable auto cloud sync") enabled: manager.credentialStatus !== QMLManager.NOCLOUD onTriggered: { |