diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-01-21 16:22:15 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-01-21 17:06:07 -0800 |
commit | fc60f210c4a1966548b4227389e3110086c1e91b (patch) | |
tree | 978f2de3d2a166d742376eafd86da06d85a03b49 /mobile-widgets | |
parent | affea807c8024b452515c7ef5f9e2d33c83c8efc (diff) | |
download | subsurface-fc60f210c4a1966548b4227389e3110086c1e91b.tar.gz |
QML UI: move 'No dives in dive list' down
Otherwise it overlaps with the page title.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 11 |
1 files changed, 9 insertions, 2 deletions
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 } |