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/gui | |
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/gui')
-rw-r--r-- | src/gui/image/qmovie.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qmovie.cpp b/src/gui/image/qmovie.cpp index a98a4ed154..a293d358cf 100644 --- a/src/gui/image/qmovie.cpp +++ b/src/gui/image/qmovie.cpp @@ -930,6 +930,7 @@ void QMovie::setSpeed(int percentSpeed) if (!d->speed && d->movieState == Running) d->nextImageTimer.start(nextFrameDelay()); d->speed.setValue(percentSpeed); + d->speed.notify(); } int QMovie::speed() const |