File indexing completed on 2024-05-19 05:35:19

0001 //////////////////////////////////////////////////////////////////////////////
0002 // oxygengenericdata.cpp
0003 // generic data container for widget animations
0004 // -------------------
0005 //
0006 // SPDX-FileCopyrightText: 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0007 //
0008 // SPDX-License-Identifier: MIT
0009 //////////////////////////////////////////////////////////////////////////////
0010 
0011 #include "oxygengenericdata.h"
0012 
0013 namespace Oxygen
0014 {
0015 //______________________________________________
0016 GenericData::GenericData(QObject *parent, QWidget *target, int duration)
0017     : AnimationData(parent, target)
0018     , _animation(new Animation(duration, this))
0019 {
0020     setupAnimation(_animation, "opacity");
0021 }
0022 }