summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/gui/animation/qanimation/dummyanimation.cpp
blob: a36e3d9300e728fc5af1427fd7eae4af4576cf87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#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 newstate, State oldstate)
{
    Q_UNUSED(newstate);
    Q_UNUSED(oldstate);
}