Fix some qml type warnings

This commit is contained in:
Tobias Fella
2025-08-13 17:43:51 +02:00
parent 964bcfd5f5
commit 78b218fef3

View File

@@ -295,9 +295,9 @@ Kirigami.ApplicationWindow {
}); });
} }
function onUserConsentRequired(url) { function onUserConsentRequired(url) {
Qt.createComponent("org.kde.neochat", "ConsentDialog").createObject(this, { (Qt.createComponent("org.kde.neochat", "ConsentDialog").createObject(this, {
url: url url: url
}).open(); }) as ConsentDialog).open();
} }
} }
@@ -345,7 +345,7 @@ Kirigami.ApplicationWindow {
room: room, room: room,
user: user, user: user,
connection: root.connection, connection: root.connection,
}); }) as UserDetailDialog;
dialog.parent = QmlUtils.focusedWindowItem(); // Kirigami Dialogs overwrite the parent, so we need to set it again dialog.parent = QmlUtils.focusedWindowItem(); // Kirigami Dialogs overwrite the parent, so we need to set it again
dialog.open(); dialog.open();
} }