Use Component.onCompleted

as we don't yet depends on KF 6.10
This commit is contained in:
Carl Schwan
2025-01-07 16:33:31 +01:00
parent 334a1b5bef
commit d796ab350e

View File

@@ -27,7 +27,8 @@ Kirigami.SearchDialog {
onTextChanged: RoomManager.sortFilterRoomListModel.filterText = text
model: RoomManager.sortFilterRoomListModel
emptyText: i18nc("Placeholder message", "No room found")
emptyHelpfulAction: Kirigami.Action {
Kirigami.Action {
id: exploreRoomAction
text: i18nc("@action:button", "Explore rooms")
icon.name: "compass"
onTriggered: {
@@ -43,6 +44,8 @@ Kirigami.SearchDialog {
}
}
Component.onCompleted: emptyHelpfulAction = exploreRoomAction
parent: QQC2.Overlay.overlay
delegate: RoomDelegate {