aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-25 14:13:29 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-17 09:17:54 -0800
commit17207917868476622b00656fc5f139ae126b90ff (patch)
tree15ac5c136cb0fa173ba714e06363b86fd720d260 /mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch
parent3c89964d797ea11fbeff18ead576a46f576a91e5 (diff)
downloadsubsurface-17207917868476622b00656fc5f139ae126b90ff.tar.gz
kirigami: maintain our patches relative to upstream
Having them as commits like this should make it easier to migrate them as we update the underlying Kirigami version. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch')
-rw-r--r--mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch b/mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch
new file mode 100644
index 000000000..a818b5b9f
--- /dev/null
+++ b/mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch
@@ -0,0 +1,42 @@
+From c0c5903023e24387e509d1e28ca4915d81a30319 Mon Sep 17 00:00:00 2001
+From: Dirk Hohndel <dirk@hohndel.org>
+Date: Tue, 24 Nov 2020 20:52:18 -0800
+Subject: [PATCH 01/11] global drawer: expose pop() function
+
+This allows us to implement our own back button.
+
+Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
+---
+ src/controls/GlobalDrawer.qml | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/src/controls/GlobalDrawer.qml b/src/controls/GlobalDrawer.qml
+index b7163b70..da576177 100644
+--- a/src/controls/GlobalDrawer.qml
++++ b/src/controls/GlobalDrawer.qml
+@@ -232,6 +232,13 @@ OverlayDrawer {
+ */
+ property bool isMenu: false
+
++ /**
++ * pop: function
++ *
++ * Point to the pop function of the stackView inside the scrollView in order to be able to implement the Back button in the caller
++ */
++ function pop() { stackView.pop() }
++
+ /**
+ * Notifies that the banner has been clicked
+ */
+@@ -278,6 +285,8 @@ OverlayDrawer {
+ topMargin: headerParent.height + headerParent.y
+ }
+
++ function pop() { stackView.pop() }
++
+ Flickable {
+ id: mainFlickable
+ contentWidth: width
+--
+2.25.1
+