From e047e971908ff74707fb561e8e1a51b36d847bff Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 5 Oct 2019 14:28:12 -0700 Subject: Mobile: ApplicationHeader is now deprecated Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'mobile-widgets/qml/main.qml') 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 -- cgit v1.2.3-70-g09d2