summaryrefslogtreecommitdiffstats
path: root/examples/sql/drilldown/imageitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql/drilldown/imageitem.cpp')
-rw-r--r--examples/sql/drilldown/imageitem.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/sql/drilldown/imageitem.cpp b/examples/sql/drilldown/imageitem.cpp
index 04ec614755..72de623373 100644
--- a/examples/sql/drilldown/imageitem.cpp
+++ b/examples/sql/drilldown/imageitem.cpp
@@ -109,9 +109,8 @@ void ImageItem::setFrame(int frame)
//! [4]
void ImageItem::adjust()
{
- QMatrix matrix;
- matrix.scale(120/ boundingRect().width(), 120/ boundingRect().height());
- setMatrix(matrix);
+ setTransform(QTransform::fromScale(120 / boundingRect().width(),
+ 120 / boundingRect().height()));
}
//! [4]