summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-07-20 01:28:36 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-07-20 01:28:36 (GMT)
commit06ef198e0812b514c261ef8f7c82db754450f1fa (patch)
treef3539ad415d1ec0d100fad1208baea7e857d7cc0
parent9a8ce2bd461f50fdcb7ac0ce658aac55a4bc4415 (diff)
downloadQt-06ef198e0812b514c261ef8f7c82db754450f1fa.zip
Qt-06ef198e0812b514c261ef8f7c82db754450f1fa.tar.gz
Qt-06ef198e0812b514c261ef8f7c82db754450f1fa.tar.bz2
Improve documentation on setting arbitray transform origin points
transformOriginPoint is undocumented for a reason. It shouldn't be used by Item. Added some docs to assist find the right way, i.e. Scale and Rotation elements. Task-number: QTBUG-12265
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitem.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.cpp b/src/declarative/graphicsitems/qdeclarativeitem.cpp
index 367a5d0..9d70beb 100644
--- a/src/declarative/graphicsitems/qdeclarativeitem.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeitem.cpp
@@ -1514,6 +1514,9 @@ QDeclarativeItem::~QDeclarativeItem()
\endqml
The default transform origin is \c Item.Center.
+
+ To set an arbitrary transform origin point use the \l Scale or \l Rotation
+ transform elements.
*/
/*!
@@ -2192,6 +2195,8 @@ void QDeclarativeItem::setBaselineOffset(qreal offset)
}
\endqml
\endtable
+
+ \sa transform, Rotation
*/
/*!
@@ -2228,6 +2233,8 @@ void QDeclarativeItem::setBaselineOffset(qreal offset)
}
\endqml
\endtable
+
+ \sa transform, Scale
*/
/*!