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