diff options
author | Tim Blechmann <tim@klingt.org> | 2023-05-10 22:09:50 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-05-11 13:09:38 +0000 |
commit | a22899fe27400d5748f5ee7c2b9f2d106e9156ea (patch) | |
tree | 8c9b598c975367ed51597a5b81ea19316fbd221d | |
parent | 3f25c52914a25aed17c4b19f202e0304de74cf1f (diff) | |
download | qtbase-a22899fe27400d5748f5ee7c2b9f2d106e9156ea.tar.gz |
animation: use Q_EMIT in private header
qabstractanimation_p.h is pulled in from qmltc generated code, that
users may decide to build with `QT_NO_KEYWORDS`
Change-Id: I6ce1e82b3c68f6b7e1e349b40945a6f398d8baf5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 1269f33d3be4cf50957fb98cfc9840893cb5d8de)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/corelib/animation/qabstractanimation_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/animation/qabstractanimation_p.h b/src/corelib/animation/qabstractanimation_p.h index 5be59543c8..24c7eed9d2 100644 --- a/src/corelib/animation/qabstractanimation_p.h +++ b/src/corelib/animation/qabstractanimation_p.h @@ -48,7 +48,7 @@ public: { q_func()->setDirection(direction); } - void emitDirectionChanged() { emit q_func()->directionChanged(direction); } + void emitDirectionChanged() { Q_EMIT q_func()->directionChanged(direction); } Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QAbstractAnimationPrivate, QAbstractAnimation::Direction, direction, &QAbstractAnimationPrivate::setDirection, &QAbstractAnimationPrivate::emitDirectionChanged, @@ -61,7 +61,7 @@ public: Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(QAbstractAnimationPrivate, int, loopCount, 1) - void emitCurrentLoopChanged() { emit q_func()->currentLoopChanged(currentLoop); } + void emitCurrentLoopChanged() { Q_EMIT q_func()->currentLoopChanged(currentLoop); } Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QAbstractAnimationPrivate, int, currentLoop, nullptr, &QAbstractAnimationPrivate::emitCurrentLoopChanged, 0) |