QStyleAnimation: remove obsolete workaround for threaded rendering

This is a partial revert of 7abf623. The desktop components have been
fixed to call QStyle in the main GUI thread.

Change-Id: Ifd8364269b7d2e350f34647c128ff2fbde70afd6
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
bb10
J-P Nurmi 2013-01-15 10:48:37 +01:00 committed by The Qt Project
parent 7818eaf2b1
commit 3a1f1aecf9
1 changed files with 1 additions and 5 deletions

View File

@ -46,13 +46,9 @@
QT_BEGIN_NAMESPACE
QStyleAnimation::QStyleAnimation(QObject *target) : QAbstractAnimation(),
QStyleAnimation::QStyleAnimation(QObject *target) : QAbstractAnimation(target),
_delay(0), _duration(-1), _startTime(QTime::currentTime())
{
if (target) {
moveToThread(target->thread());
setParent(target);
}
connect(this, SIGNAL(finished()), SLOT(deleteLater()));
}