Fix high-dpi QGraphicsPixmapItem bounding rects.
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Wed, 12 Mar 2014 10:01:26 +0000 (11:01 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 17 Mar 2014 08:15:15 +0000 (09:15 +0100)
commitffc8aac684e97bad1fb598883fa05ae66f7f1e4c
tree2e0694728d31921a57ac3555446a1a696bb35e83
parent0b7beaaaf2384fae01ae403737450a59b2fcabac
Fix high-dpi QGraphicsPixmapItem bounding rects.

QGraphicsPixmapItem did not take the pixmaps
devicePixelRatio into account when calculating the
bounding rect. As a consequence, a 512x512@2x pixmap
would get a 512x512 bounding size instead of the
correct 256x256 bounding size.

Task-number: QTBUG-37008
Change-Id: I266e418b7e5d92bf1d4c96bd9380a27708dc2b4a
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
src/widgets/graphicsview/qgraphicsitem.cpp