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>
This commit is contained in:
Marco Martin 2016-06-21 16:53:00 +02:00 committed by Dirk Hohndel
parent cb20da7de3
commit 4ec1a94dee

View file

@ -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: {