From 6b28a34ae722f553e8c405f625d89a095434dc4e Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 7 Aug 2017 12:35:59 +0200 Subject: [PATCH] feat(utils): improve performance of `setTimeout` --- ui/scripts/Utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/Utils/utils.js b/ui/scripts/Utils/utils.js index 5fa3a2335..e1b1d093d 100644 --- a/ui/scripts/Utils/utils.js +++ b/ui/scripts/Utils/utils.js @@ -229,7 +229,7 @@ function qmlTypeof (object, className) { // delay is in milliseconds. function setTimeout (parent, delay, cb) { var timer = new (function (parent) { - return Qt.createQmlObject('import QtQuick 2.7; Timer { }', parent) + return Qt.createQmlObject('import QtQml 2.2; Timer { }', parent) })(parent) timer.interval = delay