mirror of
https://github.com/vicr123/the-libs.git
synced 2025-01-23 19:02:07 -05:00
26 lines
538 B
C++
26 lines
538 B
C++
#ifndef TVARIANTANIMATION_H
|
|
#define TVARIANTANIMATION_H
|
|
|
|
#include <QVariantAnimation>
|
|
#include <QDebug>
|
|
#include "the-libs_global.h"
|
|
|
|
class THELIBSSHARED_EXPORT tVariantAnimation : public QVariantAnimation
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
tVariantAnimation(QObject *parent = nullptr);
|
|
~tVariantAnimation();
|
|
|
|
void setForceAnimation(bool force);
|
|
bool forceAnimation();
|
|
|
|
public slots:
|
|
void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped);
|
|
|
|
private:
|
|
bool forceAnim = false;
|
|
};
|
|
|
|
#endif // TVARIANTANIMATION_H
|