File indexing completed on 2024-04-21 04:03:41

0001 /*
0002     SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef ANIMATOR_H
0008 #define ANIMATOR_H
0009 
0010 #include "animation.h"
0011 #include <QTimer>
0012 #include <QElapsedTimer>
0013 
0014 class Animator : public AnimationGroup
0015 {
0016 Q_OBJECT
0017 public:
0018     Animator();
0019     
0020     void startTimer();
0021     void stopTimer();
0022     void add(Animation* a);
0023 public Q_SLOTS:
0024     void tick();
0025 private:
0026     QTimer m_timer;
0027     QElapsedTimer m_time;
0028 };
0029 
0030 #endif // ANIMATOR_H
0031