Commit 6b28a34a authored by Ronan Abhamon's avatar Ronan Abhamon

feat(utils): improve performance of `setTimeout`

parent 2a53b6d6
...@@ -229,7 +229,7 @@ function qmlTypeof (object, className) { ...@@ -229,7 +229,7 @@ function qmlTypeof (object, className) {
// delay is in milliseconds. // delay is in milliseconds.
function setTimeout (parent, delay, cb) { function setTimeout (parent, delay, cb) {
var timer = new (function (parent) { var timer = new (function (parent) {
return Qt.createQmlObject('import QtQuick 2.7; Timer { }', parent) return Qt.createQmlObject('import QtQml 2.2; Timer { }', parent)
})(parent) })(parent)
timer.interval = delay timer.interval = delay
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment