aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2017-07-19 16:46:27 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-23 03:20:58 +0900
commit8419a198106ba60208db6c65fe28c3107d6e2347 (patch)
tree7ef03ec68088b55af84abe69771019f9b4970892 /mobile-widgets/qml/main.qml
parent71b6b8e043f3a1d1d96a6242aa8c2988b3af2cfd (diff)
downloadsubsurface-8419a198106ba60208db6c65fe28c3107d6e2347.tar.gz
QML UI: add icons to global drawer
Add an icon to each item in the global drawer Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index d1944a14e..49201e15d 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -115,6 +115,7 @@ Kirigami.ApplicationWindow {
actions: [
Kirigami.Action {
+ iconName: "icons/ic_home.svg"
text: qsTr("Dive list")
onTriggered: {
manager.appendTextToLog("requested dive list with credential status " + manager.credentialStatus)
@@ -130,6 +131,7 @@ Kirigami.ApplicationWindow {
}
},
Kirigami.Action {
+ iconName: "icons/ic_sync.svg"
text: qsTr("Dive managment")
Kirigami.Action {
text: qsTr("Add dive manually")
@@ -185,6 +187,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
}
},
Kirigami.Action {
+ iconName: "icons/ic_place.svg"
text: qsTr("GPS")
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
visible: (Qt.platform.os !== "ios")
@@ -220,6 +223,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
}
},
Kirigami.Action {
+ iconName: "icons/ic_info_outline.svg"
text: qsTr("About")
onTriggered: {
stackView.push(aboutWindow)
@@ -227,6 +231,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
}
},
Kirigami.Action {
+ iconName: "icons/ic_settings.svg"
text: qsTr("Settings")
Kirigami.Action {
text: qsTr("Cloud credentials")
@@ -250,6 +255,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
}
},
Kirigami.Action {
+ iconName: "icons/ic_adb.svg"
text: qsTr("Developer")
visible: manager.developer
Kirigami.Action {
@@ -267,6 +273,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
}
},
Kirigami.Action {
+ iconName: "icons/ic_help_outline.svg"
text: qsTr("Help")
onTriggered: {
Qt.openUrlExternally("https://subsurface-divelog.org/documentation/subsurface-mobile-user-manual/")