From 72a54fcf93d5e431ea2ca9cbc3f739bda8c4b0b1 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Fri, 2 Apr 2021 22:34:22 +0800 Subject: [PATCH] Fix header item warning --- src/qml/Wallpaper/BackgroundPage.qml | 2 +- src/qml/main.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qml/Wallpaper/BackgroundPage.qml b/src/qml/Wallpaper/BackgroundPage.qml index 4af3b7e..e7719dd 100644 --- a/src/qml/Wallpaper/BackgroundPage.qml +++ b/src/qml/Wallpaper/BackgroundPage.qml @@ -83,7 +83,7 @@ ItemPage { cellWidth: calcExtraSpacing(itemWidth, _view.width) + itemWidth property int itemWidth: 250 - property int itemHeight: 150 + property int itemHeight: 170 delegate: Item { id: item diff --git a/src/qml/main.qml b/src/qml/main.qml index b5022fb..4b58a19 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -39,14 +39,14 @@ Meui.Window { Label { text: rootWindow.title leftPadding: Meui.Units.largeSpacing + Meui.Units.smallSpacing - font.pointSize: parent.height / 3 + font.pointSize: parent.height > 0 ? parent.height / 3 : 1 Layout.preferredWidth: sideBar.width Layout.alignment: Qt.AlignBottom } Label { text: stackView.currentItem.headerTitle - font.pointSize: parent.height / 3 + font.pointSize: parent.height > 0 ? parent.height / 3 : 1 leftPadding: Meui.Units.largeSpacing + Meui.Units.smallSpacing Layout.alignment: Qt.AlignBottom }