diff --git a/qt-mobile/qml/GpsList.qml b/qt-mobile/qml/GpsList.qml
index f0afc56db..baa65e3b9 100644
--- a/qt-mobile/qml/GpsList.qml
+++ b/qt-mobile/qml/GpsList.qml
@@ -28,11 +28,12 @@ MobileComponents.Page {
Component {
id: gpsDelegate
- MobileComponents.ListItem {
+ MobileComponents.ListItemWithActions {
id: gpsFix
enabled: true
width: parent.width
property int horizontalPadding: MobileComponents.Units.gridUnit / 2 - MobileComponents.Units.smallSpacing + 1
+
Item {
width: parent.width - MobileComponents.Units.gridUnit
height: childrenRect.height - MobileComponents.Units.smallSpacing
@@ -84,8 +85,16 @@ MobileComponents.Page {
font.pointSize: subsurfaceTheme.smallPointSize
}
}
-
}
+ actions: [
+ Action {
+ iconName: "dialog-cancel"
+ onTriggered: {
+ print("delete this!")
+ }
+ }
+
+ ]
}
}
diff --git a/qt-mobile/qml/mobile-resources.qrc b/qt-mobile/qml/mobile-resources.qrc
index bf38cf074..d361ce420 100644
--- a/qt-mobile/qml/mobile-resources.qrc
+++ b/qt-mobile/qml/mobile-resources.qrc
@@ -32,6 +32,7 @@
mobilecomponents/PageRow.qml
mobilecomponents/Label.qml
mobilecomponents/ListItem.qml
+ mobilecomponents/ListItemWithActions.qml
mobilecomponents/OverlayDrawer.qml
mobilecomponents/Theme.qml
mobilecomponents/Units.qml
@@ -46,5 +47,6 @@
mobilecomponents/icons/document-save.svg
mobilecomponents/icons/view-readermode.svg
mobilecomponents/icons/dialog-cancel.svg
+ mobilecomponents/icons/application-menu.svg
diff --git a/scripts/mobilecomponents.sh b/scripts/mobilecomponents.sh
index 39bfa5262..e83e0e7e9 100755
--- a/scripts/mobilecomponents.sh
+++ b/scripts/mobilecomponents.sh
@@ -51,5 +51,6 @@ cp $BREEZE/icons/actions/24/document-save.svg $MC/icons
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
echo org.kde.plasma.mobilecomponents synced from upstream