aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-08 23:17:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-08 23:17:48 -0800
commit038cfcba911f2ae0e22ef6138042a6154578723c (patch)
treefe726744e7188c3a1a2065ae831f07c562efc477 /qt-mobile
parentf61b83301ae6ba40dadb0dc3b18ff6a6ce923ddf (diff)
downloadsubsurface-038cfcba911f2ae0e22ef6138042a6154578723c.tar.gz
QML UI: add second action to GPS list entries
This one will allow people to see the location on a map. Also not implemented, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/GpsList.qml6
-rw-r--r--qt-mobile/qml/mobile-resources.qrc1
2 files changed, 7 insertions, 0 deletions
diff --git a/qt-mobile/qml/GpsList.qml b/qt-mobile/qml/GpsList.qml
index 0dfa54c91..1e3242e6d 100644
--- a/qt-mobile/qml/GpsList.qml
+++ b/qt-mobile/qml/GpsList.qml
@@ -92,6 +92,12 @@ MobileComponents.Page {
onTriggered: {
print("delete this!")
}
+ },
+ Action {
+ iconName: "gps"
+ onTriggered: {
+ print("show map")
+ }
}
]
diff --git a/qt-mobile/qml/mobile-resources.qrc b/qt-mobile/qml/mobile-resources.qrc
index 452cf1391..3a84bbf66 100644
--- a/qt-mobile/qml/mobile-resources.qrc
+++ b/qt-mobile/qml/mobile-resources.qrc
@@ -48,6 +48,7 @@
<file alias="org/kde/plasma/mobilecomponents/icons/view-readermode.svg">mobilecomponents/icons/view-readermode.svg</file>
<file alias="org/kde/plasma/mobilecomponents/icons/dialog-cancel.svg">mobilecomponents/icons/dialog-cancel.svg</file>
<file alias="org/kde/plasma/mobilecomponents/icons/application-menu.svg">mobilecomponents/icons/application-menu.svg</file>
+ <file alias="org/kde/plasma/mobilecomponents/icons/gps.svg">mobilecomponents/icons/gps.svg</file>
<file alias="org/kde/plasma/mobilecomponents/icons/trash-empty.svg">mobilecomponents/icons/trash-empty.svg</file>
</qresource>
</RCC>