mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3c89964d79
commit
1720791786
13 changed files with 628 additions and 345 deletions
42
mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch
vendored
Normal file
42
mobile-widgets/3rdparty/0001-global-drawer-expose-pop-function.patch
vendored
Normal file
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue