@@ -61,8 +61,11 QVariant BarAnimation::interpolated(const QVariant &from, const QVariant &to, qr | |||
|
61 | 61 | |
|
62 | 62 | void BarAnimation::updateCurrentValue(const QVariant &value) |
|
63 | 63 | { |
|
64 | QVector<QRectF> layout = qvariant_cast<QVector<QRectF> >(value); | |
|
65 | m_item->setLayout(layout); | |
|
64 | if (state() != QAbstractAnimation::Stopped) { //workaround | |
|
65 | ||
|
66 | QVector<QRectF> layout = qvariant_cast<QVector<QRectF> >(value); | |
|
67 | m_item->setLayout(layout); | |
|
68 | } | |
|
66 | 69 | } |
|
67 | 70 | |
|
68 | 71 | void BarAnimation::setup(const QVector<QRectF> &oldLayout, const QVector<QRectF> &newLayout) |
General Comments 0
You need to be logged in to leave comments.
Login now