summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-05-13 07:31:53 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-05-13 07:31:53 (GMT)
commit1bea842323d9eb2aea180cba54f60028dcfd213e (patch)
tree4ddea008d0e224ca2cc12dfac9d3fc982d45f890 /src
parent801d9d9716a6fe69d805f6451afd4159ac0d1a38 (diff)
downloadQt-1bea842323d9eb2aea180cba54f60028dcfd213e.zip
Qt-1bea842323d9eb2aea180cba54f60028dcfd213e.tar.gz
Qt-1bea842323d9eb2aea180cba54f60028dcfd213e.tar.bz2
qdoc: Fixed some qdoc errors.
Diffstat (limited to 'src')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index ce635d6..ea0db2b 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -2994,6 +2994,9 @@ void QGraphicsItem::translate(qreal dx, qreal dy)
setTransform(QTransform::fromTranslate(dx, dy), true);
}
+/*!
+ Returns the origin point used for all transformations.
+ */
QPointF QGraphicsItem::transformOrigin() const
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3005,7 +3008,7 @@ QPointF QGraphicsItem::transformOrigin() const
}
/*!
- Set a center for all transformation
+ Set a \a center for all transformations.
*/
void QGraphicsItem::setTransformOrigin(const QPointF &center)
{
@@ -3031,6 +3034,9 @@ void QGraphicsItem::setTransformOrigin(const QPointF &center)
}
+/*!
+ Returns the x scale factor.
+ */
qreal QGraphicsItem::xScale() const
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3041,6 +3047,9 @@ qreal QGraphicsItem::xScale() const
return transformData->scaleX;
}
+/*!
+ Sets the x scale factor to \a factor.
+ */
void QGraphicsItem::setXScale(qreal factor)
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3063,6 +3072,9 @@ void QGraphicsItem::setXScale(qreal factor)
d_ptr->invalidateSceneTransformCache();
}
+/*!
+ Returns the y scale factor.
+ */
qreal QGraphicsItem::yScale() const
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3073,6 +3085,9 @@ qreal QGraphicsItem::yScale() const
return transformData->scaleY;
}
+/*!
+ Sets the y scale factor to \a factor.
+ */
void QGraphicsItem::setYScale(qreal factor)
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3095,6 +3110,9 @@ void QGraphicsItem::setYScale(qreal factor)
d_ptr->invalidateSceneTransformCache();
}
+/*!
+ Returns the x rotation angle.
+ */
qreal QGraphicsItem::xRotation() const
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3104,6 +3122,9 @@ qreal QGraphicsItem::xRotation() const
return transformData->rotationX;
}
+/*!
+ Sets the x rotation angle to \a angle.
+ */
void QGraphicsItem::setXRotation(qreal angle)
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3125,6 +3146,9 @@ void QGraphicsItem::setXRotation(qreal angle)
d_ptr->invalidateSceneTransformCache();
}
+/*!
+ Returns y rotation angle.
+ */
qreal QGraphicsItem::yRotation() const
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3134,6 +3158,9 @@ qreal QGraphicsItem::yRotation() const
return transformData->rotationY;
}
+/*!
+ Sets the y rotation angle to \a angle.
+ */
void QGraphicsItem::setYRotation(qreal angle)
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3155,6 +3182,9 @@ void QGraphicsItem::setYRotation(qreal angle)
d_ptr->invalidateSceneTransformCache();
}
+/*!
+ Returns the z rotation angle.
+ */
qreal QGraphicsItem::zRotation() const
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(
@@ -3164,6 +3194,9 @@ qreal QGraphicsItem::zRotation() const
return transformData->rotationZ;
}
+/*!
+ Sets the z rotation angle to \a angle.
+ */
void QGraphicsItem::setZRotation(qreal angle)
{
QGraphicsItemPrivate::TransformData *transformData = static_cast<QGraphicsItemPrivate::TransformData *>(