##// END OF EJS Templates
Fixed baranimation blinking
Marek Rosa -
r2320:b9410ebe3045
parent child
Show More
@@ -61,9 +61,12 QVariant BarAnimation::interpolated(const QVariant &from, const QVariant &to, qr
61
61
62 void BarAnimation::updateCurrentValue(const QVariant &value)
62 void BarAnimation::updateCurrentValue(const QVariant &value)
63 {
63 {
64 if (state() != QAbstractAnimation::Stopped) { //workaround
65
64 QVector<QRectF> layout = qvariant_cast<QVector<QRectF> >(value);
66 QVector<QRectF> layout = qvariant_cast<QVector<QRectF> >(value);
65 m_item->setLayout(layout);
67 m_item->setLayout(layout);
66 }
68 }
69 }
67
70
68 void BarAnimation::setup(const QVector<QRectF> &oldLayout, const QVector<QRectF> &newLayout)
71 void BarAnimation::setup(const QVector<QRectF> &oldLayout, const QVector<QRectF> &newLayout)
69 {
72 {
General Comments 0
You need to be logged in to leave comments. Login now