Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
restore zoom out rect
- Loading branch information
|
@@ -47,10 +47,6 @@ constructor |
|
|
|
|
|
|
|
|
|
|
|
void updateCursor(); |
|
|
%Docstring |
|
|
Flag to indicate a map canvas drag operation is taking place |
|
|
%End |
|
|
}; |
|
|
|
|
|
/************************************************************************ |
|
|
|
@@ -65,15 +65,8 @@ void QgsMapToolZoom::canvasMoveEvent( QgsMapMouseEvent *e ) |
|
|
mZoomRect.setBottomRight( e->pos() ); |
|
|
if ( mRubberBand ) |
|
|
{ |
|
|
if ( mZoomOut ) |
|
|
{ |
|
|
mRubberBand->hide(); |
|
|
} |
|
|
else |
|
|
{ |
|
|
mRubberBand->setToCanvasRectangle( mZoomRect ); |
|
|
mRubberBand->show(); |
|
|
} |
|
|
mRubberBand->setToCanvasRectangle( mZoomRect ); |
|
|
mRubberBand->show(); |
|
|
} |
|
|
} |
|
|
|
|
@@ -96,7 +89,7 @@ void QgsMapToolZoom::canvasReleaseEvent( QgsMapMouseEvent *e ) |
|
|
// a pen based computer reporting a press, move, and release, all the |
|
|
// one point. |
|
|
bool tooShort = ( mZoomRect.topLeft() - mZoomRect.bottomRight() ).manhattanLength() < mMinPixelZoom; |
|
|
if ( !mDragging || tooShort || mZoomOut ) |
|
|
if ( !mDragging || tooShort ) |
|
|
{ |
|
|
mDragging = false; |
|
|
delete mRubberBand; |
|
|
|
@@ -63,6 +63,7 @@ class GUI_EXPORT QgsMapToolZoom : public QgsMapTool |
|
|
QCursor mZoomOutCursor; |
|
|
QCursor mZoomInCursor; |
|
|
|
|
|
private: |
|
|
void updateCursor(); |
|
|
}; |
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.