Merge integration refs/builds/qtci/dev/1618317407

This commit is contained in:
Qt CI Bot 2021-04-13 16:09:24 +00:00
commit 7ce274d95d
2 changed files with 13 additions and 28 deletions

View File

@ -911,7 +911,7 @@ void QDefaultAnimationDriver::stopTimer()
m_timer.stop();
}
QAbstractAnimationPrivate::~QAbstractAnimationPrivate() { }
void QAbstractAnimationPrivate::setState(QAbstractAnimation::State newState)
{

View File

@ -67,43 +67,28 @@ class QAbstractAnimation;
class QAbstractAnimationPrivate : public QObjectPrivate
{
public:
QAbstractAnimationPrivate()
: state(QAbstractAnimation::Stopped),
direction(QAbstractAnimation::Forward),
totalCurrentTime(0),
currentTime(0),
loopCount(1),
currentLoop(0),
deleteWhenStopped(false),
hasRegisteredTimer(false),
isPause(false),
isGroup(false),
group(nullptr)
{
}
virtual ~QAbstractAnimationPrivate() {}
virtual ~QAbstractAnimationPrivate();
static QAbstractAnimationPrivate *get(QAbstractAnimation *q)
{
return q->d_func();
}
QAbstractAnimation::State state;
QAbstractAnimation::Direction direction;
QAbstractAnimation::State state = QAbstractAnimation::Stopped;
QAbstractAnimation::Direction direction = QAbstractAnimation::Forward;
void setState(QAbstractAnimation::State state);
int totalCurrentTime;
int currentTime;
int loopCount;
int currentLoop;
int totalCurrentTime = 0;
int currentTime = 0;
int loopCount = 1;
int currentLoop = 0;
bool deleteWhenStopped;
bool hasRegisteredTimer;
bool isPause;
bool isGroup;
bool deleteWhenStopped = false;
bool hasRegisteredTimer = false;
bool isPause = false;
bool isGroup = false;
QAnimationGroup *group;
QAnimationGroup *group = nullptr;
private:
Q_DECLARE_PUBLIC(QAbstractAnimation)