the-libs/tpropertyanimation.h
Victor Tran 96128af235 Merge branch 'refs/heads/master' into blueprint
Merge with some old code and resolve conflicts
2017-02-07 21:25:26 +11:00

34 lines
706 B
C++

#ifndef TPROPERTYANIMATION_H
#define TPROPERTYANIMATION_H
#include <QObject>
#include "tvariantanimation.h"
class THELIBSSHARED_EXPORT tPropertyAnimation : public tVariantAnimation
{
Q_OBJECT
public:
tPropertyAnimation(QObject *target, const QByteArray &propertyName, QObject *parent = Q_NULLPTR);
~tPropertyAnimation();
QObject* targetObject;
QByteArray targetName;
using tVariantAnimation::finished;
public slots:
void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped);
protected slots:
void overtake();
private slots:
void propertyChanged(QVariant value);
private:
};
Q_DECLARE_METATYPE(tPropertyAnimation*)
#endif // TPROPERTYANIMATION_H