From fc60f210c4a1966548b4227389e3110086c1e91b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 21 Jan 2017 16:22:15 -0800 Subject: QML UI: move 'No dives in dive list' down Otherwise it overlaps with the page title. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mobile-widgets/qml/DiveList.qml') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index cb94e79d1..59a23fe63 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -1,4 +1,4 @@ -import QtQuick 2.4 +import QtQuick 2.6 import QtQuick.Controls 1.2 import QtQuick.Layouts 1.2 import QtQuick.Window 2.2 @@ -244,7 +244,14 @@ Kirigami.ScrollablePage { } } - Kirigami.Label { + Text { + // make sure this gets pushed far enough down so that it's not obscured by the page title + // it would be nicer to use Kirigami.Label, but due to a QML bug that isn't possible with a + // weird "component versioning" error + // using this property means that we require Qt 5.6 / QtQuick2.6 + topPadding: Kirigami.Units.iconSizes.large + leftPadding: Kirigami.Units.iconSizes.large + text: qsTr("No dives in dive list") visible: diveListView.visible && diveListView.count === 0 } -- cgit v1.2.3-70-g09d2