Mobile: ApplicationHeader is now deprecated

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-10-05 14:28:12 -07:00
parent 1e25c85dde
commit e047e97190

View file

@ -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