qt6windows7/tests/benchmarks/gui/animation/qanimation/dummyanimation.cpp

25 lines
546 B
C++
Raw Normal View History

2023-10-30 06:33:08 +08:00
// 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);
}