diff options
author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2023-05-26 16:53:43 +0200 |
---|---|---|
committer | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2023-06-07 16:26:23 +0200 |
commit | cb82b9f2addf25db34970ebb48f69291901ad7ba (patch) | |
tree | ef8813603478aed8af97966acbddf6bbdcef6ac0 /src/particles/qquickparticlegroup_p.h | |
parent | b949315427a7da1e91462fa4fce0ad35abaea2d4 (diff) |
Make properties in the particles module FINAL
Without setting the FINAL flag, properties can be shadowed by
users.
This can both cause confusion for non-experienced users, and it
causes issues with qmlsc.
[ChangeLog][Important Behavior Changes][Particles] Properties for
types in the Qt Quick Particles module are now FINAL, meaning they
can no longer be shadowed by declaring new properties with the same
names in QML. A warning will be printed out to the console, when a
FINAL property is being shadowed. We recommend that users rename
those properties to avoid potential unexpected behavior changes.
Pick-to: 6.6
Task-number: QTBUG-108739
Change-Id: I5ab970c112ab92fee468038af9a228345b8c625d
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/particles/qquickparticlegroup_p.h')
-rw-r--r-- | src/particles/qquickparticlegroup_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particles/qquickparticlegroup_p.h b/src/particles/qquickparticlegroup_p.h index 528722243a..934accc477 100644 --- a/src/particles/qquickparticlegroup_p.h +++ b/src/particles/qquickparticlegroup_p.h @@ -23,7 +23,7 @@ class Q_QUICKPARTICLES_PRIVATE_EXPORT QQuickParticleGroup : public QQuickStochas public QQmlParserStatus { Q_OBJECT - Q_PROPERTY(QQuickParticleSystem* system READ system WRITE setSystem NOTIFY systemChanged) + Q_PROPERTY(QQuickParticleSystem* system READ system WRITE setSystem NOTIFY systemChanged FINAL) //Intercept children requests and assign to the group & system Q_PROPERTY(QQmlListProperty<QObject> particleChildren READ particleChildren DESIGNABLE false)//### Hidden property for in-state system definitions - ought not to be used in actual "Sprite" states |