mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
ca07f45561
Since the animation methods are fairly the same for any QGraphicsItem, I created a new namespace named 'Animations' that should handle all of the specific Animation Functions there, and the programmer has to call those functions from the objects. Good thing is that this reduces boilerplate code. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
12 lines
No EOL
199 B
C++
12 lines
No EOL
199 B
C++
#ifndef ANIMATIONFUNCTIONS_H
|
|
#define ANIMATIONFUNCTIONS_H
|
|
|
|
#include <QtGlobal>
|
|
class QObject;
|
|
|
|
namespace Animations{
|
|
void hide(QObject *obj);
|
|
void moveTo(QObject *obj, qreal x, qreal y);
|
|
};
|
|
|
|
#endif |