diff options
| author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-02-03 12:02:29 +0100 |
|---|---|---|
| committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-04-01 10:04:27 +0200 |
| commit | 2ffb91ac592d69adf9458ac45074174537435918 (patch) | |
| tree | f9a6873e1c735c795fe55ac4cbae90c6a633eac2 /src/corelib/animation/qpauseanimation.cpp | |
| parent | aa84de1afa78cf4b63239b35a4b65f1c9c4eab6c (diff) | |
QObjectCompatProperty: Require explicit notify
For QObjectCompatProperty, which allows to do basically anything in its
setter, it is actually easier to manually specify when the change should
become visible. This is in line with manually writing emit calls in the
old property system, and allows the preservation of class invariants.
Change-Id: I585bd3f25d722ca3fd721ead85fe73dbee26c5f6
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/animation/qpauseanimation.cpp')
| -rw-r--r-- | src/corelib/animation/qpauseanimation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/animation/qpauseanimation.cpp b/src/corelib/animation/qpauseanimation.cpp index 31802f094dc..c2599da6921 100644 --- a/src/corelib/animation/qpauseanimation.cpp +++ b/src/corelib/animation/qpauseanimation.cpp @@ -130,6 +130,7 @@ void QPauseAnimation::setDuration(int msecs) } Q_D(QPauseAnimation); d->duration.setValue(msecs); + d->duration.notify(); } QBindable<int> QPauseAnimation::bindableDuration() |
