diff options
author | Marco Martin <notmart@gmail.com> | 2016-06-21 16:53:00 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-06-21 09:52:34 -0700 |
commit | 4ec1a94dee7556c97fec02caffe59a22b79c0b0b (patch) | |
tree | 4ded54ceb388c761bc1c886c0fc6cb2c30e34305 /mobile-widgets/qml/DiveList.qml | |
parent | cb20da7de3380481141c76cdffaafdb692b162e2 (diff) | |
download | subsurface-4ec1a94dee7556c97fec02caffe59a22b79c0b0b.tar.gz |
make sure the ListView is the last element
since the contentItem is the default property of
ScrollablePage, putting another Item after it will change
contentItem with that one, in this case the Label
Signed-off-by: Marco Martin <notmart@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index e405bcb79..cb94e79d1 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -244,6 +244,11 @@ Kirigami.ScrollablePage { } } + Kirigami.Label { + text: qsTr("No dives in dive list") + visible: diveListView.visible && diveListView.count === 0 + } + ListView { id: diveListView anchors.fill: parent @@ -273,11 +278,6 @@ Kirigami.ScrollablePage { } } - Kirigami.Label { - text: qsTr("No dives in dive list") - visible: diveListView.visible && diveListView.count === 0 - } - property QtObject addDiveAction: Action { iconName: "list-add" onTriggered: { |