File indexing completed on 2024-05-19 05:28:48

0001 /*
0002  * SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "breezeanimationdata.h"
0008 
0009 namespace Breeze
0010 {
0011 const qreal AnimationData::OpacityInvalid = -1;
0012 int AnimationData::_steps = 0;
0013 
0014 //_________________________________________________________________________________
0015 void AnimationData::setupAnimation(const Animation::Pointer &animation, const QByteArray &property)
0016 {
0017     // setup animation
0018     animation.data()->setStartValue(0.0);
0019     animation.data()->setEndValue(1.0);
0020     animation.data()->setTargetObject(this);
0021     animation.data()->setPropertyName(property);
0022 }
0023 
0024 }