diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2021-01-28 11:00:08 +0100 |
---|---|---|
committer | Andreas Buhr <andreas.buhr@qt.io> | 2021-01-29 16:06:19 +0100 |
commit | a1a2d97e34eb7e2445877cf9e557db55a3540f9d (patch) | |
tree | 84710b494567be61f45360adab301dadf46cb5cc /src/corelib/animation | |
parent | 115bcdb862ec52ebda04e1337f978096d8879e6d (diff) |
Remove QObjectCompatProperty::operator= for safer usage
Introduction of QObjectCompatProperty requires every write to
the property to be examined whether it is OK or should be replaced
by a setValueBypassingBindings/markDirty combination. The existence
of operator= make this difficult as it is easy to miss places where
it is written. By not having operator=, we can help developers
make sure they had a conscious decision about each write to the
property.
Change-Id: Ia61ea4722eb0bab26ce7684b85dd03d710cd1751
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/animation')
-rw-r--r-- | src/corelib/animation/qpauseanimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/animation/qpauseanimation.cpp b/src/corelib/animation/qpauseanimation.cpp index d6fa0eb210..31802f094d 100644 --- a/src/corelib/animation/qpauseanimation.cpp +++ b/src/corelib/animation/qpauseanimation.cpp @@ -129,7 +129,7 @@ void QPauseAnimation::setDuration(int msecs) return; } Q_D(QPauseAnimation); - d->duration = msecs; + d->duration.setValue(msecs); } QBindable<int> QPauseAnimation::bindableDuration() |