use as type assertions

This commit is contained in:
Peter Fajdiga
2025-04-16 23:50:14 +02:00
parent c0e7234fec
commit 8c23535e86
2 changed files with 4 additions and 4 deletions

View File

@@ -17,9 +17,9 @@ class Delayer {
}
function initQmlTimer() {
return <QmlTimer>Qt.createQmlObject(
return Qt.createQmlObject(
`import QtQuick 6.0
Timer {}`,
qmlBase
);
) as QmlTimer;
}

View File

@@ -16,7 +16,7 @@ class ShortcutAction {
` :
"";
return <ShortcutHandler>Qt.createQmlObject(
return Qt.createQmlObject(
`import QtQuick 6.0
import org.kde.kwin 3.0
ShortcutHandler {
@@ -24,7 +24,7 @@ ShortcutHandler {
text: "Karousel: ${keyBinding.description}";
${sequenceLine}}`,
qmlBase,
);
) as ShortcutHandler;
}
}