22 #include <QGraphicsScene>
30 : QGraphicsItem( 0, mapCanvas->scene() ), mMapCanvas( mapCanvas ),
31 mPanningOffset( 0, 0 ), mItemSize( 0, 0 )
41 const QStyleOptionGraphicsItem * option,
48 painter->setRenderHint( QPainter::Antialiasing );
61 double x = point.
x(), y = point.
y();
87 prepareGeometryChange();
88 setPos( r.topLeft() );
89 mItemSize = QSizeF( r.width() + 2, r.height() + 2 );
98 return QRectF( QPointF( -1, -1 ),
mItemSize );
125 int painterDpi = p->device()->logicalDpiX();
126 double scaleFactor = 1.0;
130 if ( data( 1 ).toString() ==
"composer" )
132 rasterScaleFactor = painterDpi / 25.4;
133 scaleFactor = dpi / 25.4;
141 scaleFactor = dpi / 25.4;