summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/weatheranchorlayout/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/weatheranchorlayout/main.cpp')
-rw-r--r--examples/graphicsview/weatheranchorlayout/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/graphicsview/weatheranchorlayout/main.cpp b/examples/graphicsview/weatheranchorlayout/main.cpp
index fd91967cc3..64605bebc0 100644
--- a/examples/graphicsview/weatheranchorlayout/main.cpp
+++ b/examples/graphicsview/weatheranchorlayout/main.cpp
@@ -91,7 +91,7 @@ public:
void setGeometry (const QRectF &rect)
{
- original->scale(rect.width() / r.width(), rect.height() / r.height());
+ original->setTransform(QTransform::fromScale(rect.width() / r.width(), rect.height() / r.height()), true);
original->setPos(rect.x(), rect.y());
r = rect;
}