diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-05 14:28:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-13 11:32:27 -0700 |
commit | e047e971908ff74707fb561e8e1a51b36d847bff (patch) | |
tree | d904e8fa51194825c8ab6030610eeb56d2c95bfb /mobile-widgets/qml | |
parent | 1e25c85dde8013526a9ea87dcd3b9b0681ddc95f (diff) | |
download | subsurface-e047e971908ff74707fb561e8e1a51b36d847bff.tar.gz |
Mobile: ApplicationHeader is now deprecated
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index f7cb266c3..d478e29d5 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -20,12 +20,9 @@ Kirigami.ApplicationWindow { // the C++ side. But as a matter of fact, it doesn't, unless you add this line: font: Qt.application.font - header: Kirigami.ApplicationHeader { - minimumHeight: 0 - preferredHeight: Math.round(Kirigami.Units.gridUnit * (Qt.platform.os == "ios" ? 2 : 1.5)) - maximumHeight: Kirigami.Units.gridUnit * 2 - background: Rectangle { color: subsurfaceTheme.primaryColor } - } + pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.Breadcrumb + pageStack.globalToolBar.showNavigationButtons: (Kirigami.ApplicationHeaderStyle.ShowBackButton | Kirigami.ApplicationHeaderStyle.ShowForwardButton) + property alias oldStatus: prefs.oldStatus property alias notificationText: manager.notificationText property alias locationServiceEnabled: manager.locationServiceEnabled |