chore(chat/MembersSelector): display "no results" when not found
fixes: #7495
This commit is contained in:
parent
ed4ecb17bb
commit
3b866c2ff6
|
@ -199,7 +199,7 @@ Item {
|
||||||
parent: edit
|
parent: edit
|
||||||
x: (parent.contentWidth - Style.current.halfPadding)
|
x: (parent.contentWidth - Style.current.halfPadding)
|
||||||
y: (parent.height + Style.current.halfPadding)
|
y: (parent.height + Style.current.halfPadding)
|
||||||
visible: edit.text !== "" && root.suggestionsModel.count
|
visible: edit.text !== ""
|
||||||
padding: Style.current.halfPadding
|
padding: Style.current.halfPadding
|
||||||
background: StatusDialogBackground {
|
background: StatusDialogBackground {
|
||||||
id: bg
|
id: bg
|
||||||
|
@ -215,12 +215,23 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusListView {
|
ColumnLayout {
|
||||||
id: suggestionsListView
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
implicitWidth: contentItem.childrenRect.width
|
|
||||||
implicitHeight: contentItem.childrenRect.height
|
StatusBaseText {
|
||||||
onVisibleChanged: currentIndex = 0
|
visible: root.suggestionsModel.count === 0
|
||||||
|
text: qsTr("No results found")
|
||||||
|
color: Theme.palette.baseColor1
|
||||||
|
}
|
||||||
|
|
||||||
|
StatusListView {
|
||||||
|
id: suggestionsListView
|
||||||
|
visible: root.suggestionsModel.count
|
||||||
|
|
||||||
|
implicitWidth: contentItem.childrenRect.width
|
||||||
|
implicitHeight: contentItem.childrenRect.height
|
||||||
|
onVisibleChanged: currentIndex = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue