27 #include <QPaintEvent>
28 #include <QResizeEvent>
29 #include <QMouseEvent>
42 setObjectName(
"panningWidget" );
43 setMinimumSize( 5, 5 );
44 setAttribute( Qt::WA_NoSystemBackground );
49 if ( p == mPoly )
return;
51 setGeometry( p.boundingRect() );
63 QPolygonF t = mPoly.translated( -mPoly.boundingRect().left(), -mPoly.boundingRect().top() );
64 p.drawConvexPolygon( t );
74 , mMapCanvas( mapCanvas )
77 setObjectName(
"theOverviewCanvas" );
106 QPainter paint(
this );
107 paint.drawPixmap( pe->rect().topLeft(),
mPixmap, pe->rect() );
127 QVector< QPoint > pts;
163 if ( e->button() == Qt::LeftButton )
179 if (( e->buttons() & Qt::LeftButton ) == Qt::LeftButton )
252 palette.setColor( backgroundRole(), color );
253 setPalette( palette );
258 QgsDebugMsg(
"layerSet: " + layerSet.join(
", " ) );