use as type assertions
This commit is contained in:
@@ -17,9 +17,9 @@ class Delayer {
|
||||
}
|
||||
|
||||
function initQmlTimer() {
|
||||
return <QmlTimer>Qt.createQmlObject(
|
||||
return Qt.createQmlObject(
|
||||
`import QtQuick 6.0
|
||||
Timer {}`,
|
||||
qmlBase
|
||||
);
|
||||
) as QmlTimer;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user