mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-27 22:48:27 +08:00
25 lines
546 B
C++
25 lines
546 B
C++
|
// 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);
|
||
|
}
|