22 #include <QGraphicsScene>
31 , mMapCanvas( mapCanvas )
32 , mRectRotation( 0.0 )
33 , mPanningOffset( 0, 0 )
36 Q_ASSERT( mapCanvas && mapCanvas->scene() );
37 mapCanvas->scene()->addItem(
this );
46 const QStyleOptionGraphicsItem * option,
53 painter->setRenderHint( QPainter::Antialiasing );
66 double x = point.
x(), y = point.
y();
94 prepareGeometryChange();
95 setPos( r.topLeft() );
96 mItemSize = QSizeF( r.width() + 2, r.height() + 2 );
111 return QRectF( QPointF( -1, -1 ),
mItemSize );