mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-20 09:28:28 +00:00
feat(utils): improve performance of setTimeout
This commit is contained in:
parent
2a53b6d65c
commit
6b28a34ae7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue