From 7d9c30668538e887f5a193ed4fdd385f83798062 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 22 Apr 2016 18:12:15 +0200 Subject: Adapt to Kirigami api changes * add new file AbstractApplicationHeader.qml to the qrc * add new file AbstractApplicationWindow.qml to the qrc * use new api for custom ApplicationHeader header: Kirigami.ApplicationHeader { minimumHeight: 0 preferredHeight: Kirigami.Units.gridUnit * (Qt.platform.os == "ios" ? 2 : 1) maximumHeight: Kirigami.Units.gridUnit * 2 } Signed-off-by: Marco Martin Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mobile-widgets/qml/main.qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 06e691eee..e1a140635 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -12,9 +12,11 @@ Kirigami.ApplicationWindow { id: rootItem title: qsTr("Subsurface-mobile") - header.minimumHeight: 0 - header.preferredHeight: Kirigami.Units.gridUnit * (Qt.platform.os == "ios" ? 2 : 1) - header.maximumHeight: Kirigami.Units.gridUnit * 2 + header: Kirigami.ApplicationHeader { + minimumHeight: 0 + preferredHeight: Kirigami.Units.gridUnit * (Qt.platform.os == "ios" ? 2 : 1) + maximumHeight: Kirigami.Units.gridUnit * 2 + } property bool fullscreen: true property alias oldStatus: manager.oldStatus property alias accessingCloud: manager.accessingCloud -- cgit v1.2.3-70-g09d2