diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-07-20 02:45:10 (GMT) |
---|---|---|
committer | Toby Tomkins <toby.tomkins@nokia.com> | 2010-07-26 04:09:25 (GMT) |
commit | 86ee5491b6a6849bd7ed3c398a0d296be9f055b0 (patch) | |
tree | 7812ae9714cac73350a9319c4453ec15403a3fb7 | |
parent | 69b746e8be371f40d2b1d7cefe3c8edb5ade596f (diff) | |
download | Qt-86ee5491b6a6849bd7ed3c398a0d296be9f055b0.zip Qt-86ee5491b6a6849bd7ed3c398a0d296be9f055b0.tar.gz Qt-86ee5491b6a6849bd7ed3c398a0d296be9f055b0.tar.bz2 |
Make Item::transformOriginPoint read-only
Using this property on Item will break transformOrigin property. We
have never documented it. It should not have been used. Now it is
enforced as best we can.
Task-number: QTBUG-12265
Reviewed-by: Aaron Kennedy
(cherry picked from commit 7fb140b63f03b96064ded4ec6f2ec7c93e87b825)
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeitem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.h b/src/declarative/graphicsitems/qdeclarativeitem.h index 4f420f8..8878fa0 100644 --- a/src/declarative/graphicsitems/qdeclarativeitem.h +++ b/src/declarative/graphicsitems/qdeclarativeitem.h @@ -90,6 +90,7 @@ class Q_DECLARATIVE_EXPORT QDeclarativeItem : public QGraphicsObject, public QDe Q_PROPERTY(bool wantsFocus READ wantsFocus NOTIFY wantsFocusChanged) Q_PROPERTY(QDeclarativeListProperty<QGraphicsTransform> transform READ transform DESIGNABLE false FINAL) Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin NOTIFY transformOriginChanged) + Q_PROPERTY(QPointF transformOriginPoint READ transformOriginPoint) // transformOriginPoint is read-only for Item Q_PROPERTY(bool smooth READ smooth WRITE setSmooth NOTIFY smoothChanged) Q_ENUMS(TransformOrigin) Q_CLASSINFO("DefaultProperty", "data") |