mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:13:25 +00:00
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:
parent
cb20da7de3
commit
4ec1a94dee
1 changed files with 5 additions and 5 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue