blob: a818b5b9f0f1242974d89ac618c1a58a4631ff6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
|