summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qanimation/dummyanimation.cpp
blob: 6fb1d0a07f7163da4571af24c90aba9dbbf614e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "dummyanimation.h"
#include "dummyobject.h"


DummyAnimation::DummyAnimation(DummyObject *d) : m_dummy(d)
{
}

void DummyAnimation::updateCurrentValue(const QVariant &value)
{
    if (state() == Stopped)
        return;
    if (m_dummy)
        m_dummy->setRect(value.toRect());
}

void DummyAnimation::updateState(State state)
{
    Q_UNUSED(state);
}