mirror of
https://github.com/vicr123/the-libs.git
synced 2025-01-22 18:32:10 -05:00
96128af235
Merge with some old code and resolve conflicts
34 lines
706 B
C++
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
|