Use Component.onCompleted
as we don't yet depends on KF 6.10
This commit is contained in:
@@ -27,7 +27,8 @@ Kirigami.SearchDialog {
|
|||||||
onTextChanged: RoomManager.sortFilterRoomListModel.filterText = text
|
onTextChanged: RoomManager.sortFilterRoomListModel.filterText = text
|
||||||
model: RoomManager.sortFilterRoomListModel
|
model: RoomManager.sortFilterRoomListModel
|
||||||
emptyText: i18nc("Placeholder message", "No room found")
|
emptyText: i18nc("Placeholder message", "No room found")
|
||||||
emptyHelpfulAction: Kirigami.Action {
|
Kirigami.Action {
|
||||||
|
id: exploreRoomAction
|
||||||
text: i18nc("@action:button", "Explore rooms")
|
text: i18nc("@action:button", "Explore rooms")
|
||||||
icon.name: "compass"
|
icon.name: "compass"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
@@ -43,6 +44,8 @@ Kirigami.SearchDialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: emptyHelpfulAction = exploreRoomAction
|
||||||
|
|
||||||
parent: QQC2.Overlay.overlay
|
parent: QQC2.Overlay.overlay
|
||||||
|
|
||||||
delegate: RoomDelegate {
|
delegate: RoomDelegate {
|
||||||
|
|||||||
Reference in New Issue
Block a user