added message diaplay for no matched contacts

This commit is contained in:
Aniket Kumar 2020-04-13 09:32:27 +05:30 committed by Simon Redman
parent b0cffea4a1
commit 518f161b4f

View file

@ -60,9 +60,18 @@ Kirigami.ScrollablePage
}
]
Label {
id: searchResultIndiactor
visible: deviceConnected && view.count == 0 && view.headerItem.childAt(0, 0).text.length != 0
anchors.centerIn: parent
text: i18nd("kdeconnect-sms", "No matched results found : (")
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.Wrap
}
ColumnLayout {
id: loadingMessage
visible: deviceConnected && view.count == 0 && view.headerItem.filter.text.length == 0
visible: deviceConnected && view.count == 0 && view.headerItem.childAt(0, 0).text.length == 0
anchors.centerIn: parent
BusyIndicator {