Fix property attributes.
A property can't be both constant and writable at the same time. Change-Id: Ie1f81fdf10eba7fe84f98f7c34f829cdac654e75 Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
This commit is contained in:
committed by
Yoann Lopes
parent
7553a05213
commit
eabe79f9fd
@@ -79,8 +79,8 @@ private:
|
||||
class QDeclarativeAttenuationModelLinear : public QDeclarativeAttenuationModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(qreal start READ startDistance WRITE setStartDistance CONSTANT)
|
||||
Q_PROPERTY(qreal end READ endDistance WRITE setEndDistance CONSTANT)
|
||||
Q_PROPERTY(qreal start READ startDistance WRITE setStartDistance)
|
||||
Q_PROPERTY(qreal end READ endDistance WRITE setEndDistance)
|
||||
|
||||
public:
|
||||
QDeclarativeAttenuationModelLinear(QObject *parent = 0);
|
||||
@@ -104,9 +104,9 @@ private:
|
||||
class QDeclarativeAttenuationModelInverse : public QDeclarativeAttenuationModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(qreal start READ referenceDistance WRITE setReferenceDistance CONSTANT)
|
||||
Q_PROPERTY(qreal end READ maxDistance WRITE setMaxDistance CONSTANT)
|
||||
Q_PROPERTY(qreal rolloff READ rolloffFactor WRITE setRolloffFactor CONSTANT)
|
||||
Q_PROPERTY(qreal start READ referenceDistance WRITE setReferenceDistance)
|
||||
Q_PROPERTY(qreal end READ maxDistance WRITE setMaxDistance)
|
||||
Q_PROPERTY(qreal rolloff READ rolloffFactor WRITE setRolloffFactor)
|
||||
|
||||
public:
|
||||
QDeclarativeAttenuationModelInverse(QObject *parent = 0);
|
||||
|
||||
Reference in New Issue
Block a user