aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-09-11 17:23:25 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2019-09-18 07:47:06 +0200
commit628b6ca43e2880f37ea208ff77d6a922dba9e283 (patch)
tree285f471699c3f8a1aa80a2e379f643be2547d6d2
parentb477fff35fd347f27b56afefccbf15cfefec0886 (diff)
doc: correct the snippet for Item.scale
The screenshot shows it having a transform origin at the top left, which is not the default. Task-number: QTBUG-78209 Change-Id: Id9a2d854493caba240960afa7ba400dc656ac0ab Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--src/quick/items/qquickitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp
index c1ab8716f3..4827f1ddd9 100644
--- a/src/quick/items/qquickitem.cpp
+++ b/src/quick/items/qquickitem.cpp
@@ -5686,6 +5686,7 @@ void QQuickItem::setRotation(qreal r)
color: "red"
x: 25; y: 25; width: 50; height: 50
scale: 1.4
+ transformOrigin: Item.TopLeft
}
}
\endqml