summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-07-20 02:45:10 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-07-20 02:45:10 (GMT)
commit7fb140b63f03b96064ded4ec6f2ec7c93e87b825 (patch)
tree69d451f427b471cd1a6103ed8db8b1589e87c813
parent06ef198e0812b514c261ef8f7c82db754450f1fa (diff)
downloadQt-7fb140b63f03b96064ded4ec6f2ec7c93e87b825.zip
Qt-7fb140b63f03b96064ded4ec6f2ec7c93e87b825.tar.gz
Qt-7fb140b63f03b96064ded4ec6f2ec7c93e87b825.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
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitem.h1
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")