Use Qt.createComponent in non-weird way

Fixed #647
This commit is contained in:
Tobias Fella
2024-04-10 21:32:46 +02:00
parent e044e66030
commit f5aef8d0c3
43 changed files with 94 additions and 94 deletions

View File

@@ -60,7 +60,7 @@ QQC2.Control {
source: "notifications"
}
onClicked: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'NotificationsView.qml'), {
onClicked: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'NotificationsView'), {
connection: root.connection
}, {
title: i18nc("@title", "Notifications")
@@ -275,7 +275,7 @@ QQC2.Control {
contentItem: Kirigami.Icon {
source: "list-add"
}
onClicked: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'CreateRoomDialog.qml'), {
onClicked: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'CreateRoomDialog'), {
connection: root.connection,
isSpace: true,
title: i18nc("@title", "Create a Space")