Register the QML profiler's animation callback from the GUI thread
authorUlf Hermann <ulf.hermann@digia.com>
Fri, 21 Feb 2014 16:37:40 +0000 (17:37 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 25 Feb 2014 10:05:22 +0000 (11:05 +0100)
commita22d5fdad7987534ddc825728e23ec5177de64d7
tree1c4810355161099a3ec76f44ece906588e63737b
parent481e5257c9de4c76a8255eb033d5782aae9812e0
Register the QML profiler's animation callback from the GUI thread

QUnifiedTimer is thread-local, so that a different object is returned
from instance() for each thread. This patch makes sure we register to
the one that performs the animations.

Task-number: QTCREATORBUG-11536
Change-Id: I23c3ff49f94668517b9894298a4d770a8c30e705
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
src/quick/util/qquickprofiler.cpp