summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-02-03 12:02:29 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-04-01 10:04:27 +0200
commit2ffb91ac592d69adf9458ac45074174537435918 (patch)
treef9a6873e1c735c795fe55ac4cbae90c6a633eac2 /src/gui
parentaa84de1afa78cf4b63239b35a4b65f1c9c4eab6c (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.cpp1
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