Mobile: add a "nothing to see here" label to empty lists

This commit is contained in:
Robert Griebl
2026-01-01 14:22:58 +01:00
parent dce0914da6
commit 3bc999393b
3 changed files with 26 additions and 0 deletions
+9
View File
@@ -41,6 +41,15 @@ FullscreenDialog {
ScrollIndicator.vertical: ScrollIndicator { }
FlashScrollIndicators { id: flashScroller; target: table }
Label {
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: qsTr("No %1 carts").arg(domesticOrInternational.currentIndex ? qsTr("international")
: qsTr("domestic"));
visible: table.count === 0
}
model: BS.SortFilterProxyModel {
id: sortFilterModel
sourceModel: BL.BrickLink.carts
+9
View File
@@ -59,6 +59,15 @@ FullscreenDialog {
ScrollIndicator.vertical: ScrollIndicator { }
FlashScrollIndicators { id: flashScroller; target: table }
Label {
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: qsTr("No %1 orders").arg(receivedOrPlaced.currentIndex ? qsTr("placed")
: qsTr("received"))
visible: table.count === 0
}
model: BS.SortFilterProxyModel {
id: sortFilterModel
sourceModel: BL.BrickLink.orders
+8
View File
@@ -34,6 +34,14 @@ FullscreenDialog {
ScrollIndicator.vertical: ScrollIndicator { }
FlashScrollIndicators { id: flashScroller; target: table }
Label {
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: qsTr("No wanted lists")
visible: table.count === 0
}
model: BS.SortFilterProxyModel {
id: sortFilterModel
sourceModel: BL.BrickLink.wantedLists