diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-02-22 15:23:24 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-10 09:25:57 -0700 |
commit | 0720e74c1afc5cbd51593db08add58bc277213c8 (patch) | |
tree | 9cd6980e31d808f8f3483159fa2a11993ca13fd1 /mobile-widgets/qml/DiveList.qml | |
parent | 0683d97636647f75c10aa9150e1ca8f2ab992a95 (diff) | |
download | subsurface-0720e74c1afc5cbd51593db08add58bc277213c8.tar.gz |
mobile UI: six new icons
I will (mis)use these for moving dives out of trips and to the trip above or
below and of course for undo/redo. And the weirdest one is the 'local offer'
icon that seemed a reasonably good fit to edit trip details.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 86b361186..8394fafef 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -250,6 +250,7 @@ Kirigami.ScrollablePage { property QtObject removeDiveFromTripAction: Kirigami.Action { text: visible ? qsTr ("Remove dive %1 from trip").arg(currentItem.myData.number) : "" + icon { name: ":/icons/chevron_left.svg" } visible: currentItem && currentItem.myData && !currentItem.myData.isTrip && currentItem.myData.diveInTrip === true onTriggered: { manager.removeDiveFromTrip(currentItem.myData.id) @@ -257,6 +258,7 @@ Kirigami.ScrollablePage { } property QtObject addDiveToTripAboveAction: Kirigami.Action { text: visible ? qsTr ("Add dive %1 to trip above").arg(currentItem.myData.number) : "" + icon { name: ":/icons/expand_less.svg" } visible: currentItem && currentItem.myData && !currentItem.myData.isTrip && currentItem.myData.tripAbove !== -1 onTriggered: { manager.addDiveToTrip(currentItem.myData.id, currentItem.myData.tripAbove) @@ -264,6 +266,7 @@ Kirigami.ScrollablePage { } property QtObject addDiveToTripBelowAction: Kirigami.Action { text: visible ? qsTr ("Add dive %1 to trip below").arg(currentItem.myData.number) : "" + icon { name: ":/icons/expand_more.svg" } visible: currentItem && currentItem.myData && !currentItem.myData.isTrip && currentItem.myData.tripBelow !== -1 onTriggered: { manager.addDiveToTrip(currentItem.myData.id, currentItem.myData.tripBelow) @@ -286,6 +289,7 @@ Kirigami.ScrollablePage { } property QtObject tripDetailsEdit: Kirigami.Action { text: qsTr("Edit trip details") + icon { name: ":/icons/trip_details.svg" } visible: currentItem && currentItem.myData && currentItem.myData.isTrip onTriggered: { tripEditWindow.tripId = currentItem.myData.tripId @@ -297,11 +301,13 @@ Kirigami.ScrollablePage { property QtObject undoAction: Kirigami.Action { text: qsTr("Undo") + " " + manager.undoText + icon { name: ":/icons/undo.svg" } enabled: manager.undoText !== "" onTriggered: manager.undo() } property QtObject redoAction: Kirigami.Action { text: qsTr("Redo") + " " + manager.redoText + icon { name: ":/icons/redo.svg" } enabled: manager.redoText !== "" onTriggered: manager.redo() } |