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
parent
7818eaf2b1
commit
3a1f1aecf9
|
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue