2022-05-10 10:06:48 +00: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
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#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());
|
|
|
|
}
|
|
|
|
|
2011-12-20 08:22:20 +00:00
|
|
|
void DummyAnimation::updateState(State newstate, State oldstate)
|
2011-04-27 10:05:43 +00:00
|
|
|
{
|
2011-12-20 08:22:20 +00:00
|
|
|
Q_UNUSED(newstate);
|
|
|
|
Q_UNUSED(oldstate);
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|