From 038cfcba911f2ae0e22ef6138042a6154578723c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 8 Jan 2016 23:17:48 -0800 Subject: 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 --- qt-mobile/qml/GpsList.qml | 6 ++++++ qt-mobile/qml/mobile-resources.qrc | 1 + scripts/mobilecomponents.sh | 1 + 3 files changed, 8 insertions(+) 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 @@ mobilecomponents/icons/view-readermode.svg mobilecomponents/icons/dialog-cancel.svg mobilecomponents/icons/application-menu.svg + mobilecomponents/icons/gps.svg mobilecomponents/icons/trash-empty.svg diff --git a/scripts/mobilecomponents.sh b/scripts/mobilecomponents.sh index 94ae0c2ce..590481468 100755 --- a/scripts/mobilecomponents.sh +++ b/scripts/mobilecomponents.sh @@ -52,6 +52,7 @@ cp $BREEZE/icons/actions/24/go-next.svg $MC/icons cp $BREEZE/icons/actions/24/go-previous.svg $MC/icons cp $BREEZE/icons/actions/16/view-readermode.svg $MC/icons cp $BREEZE/icons/actions/24/application-menu.svg $MC/icons +cp $BREEZE/icons/actions/22/gps.svg $MC/icons cp $BREEZE/icons/actions/24/trash-empty.svg $MC/icons echo org.kde.plasma.mobilecomponents synced from upstream -- cgit v1.2.3-70-g09d2