22 #include <QMouseEvent>
30 :
QgsMapTool( canvas ), mZoomOut( zoomOut ), mDragging( false ), mRubberBand( 0 )
33 QPixmap myZoomQPixmap = QPixmap((
const char ** )( zoomOut ?
zoom_out :
zoom_in ) );
34 mCursor = QCursor( myZoomQPixmap, 7, 7 );
45 if ( !( e->buttons() & Qt::LeftButton ) )
66 if ( e->button() != Qt::LeftButton )
75 if ( e->button() != Qt::LeftButton )
134 QgsDebugMsg( QString(
"Extent scaled by %1 to %2" ).arg( sf ).arg( r.
toString().toLocal8Bit().constData() ) );
135 QgsDebugMsg( QString(
"Center of currentExtent after scaling is %1" ).arg( r.
center().
toString().toLocal8Bit().constData() ) );