Skip to content
Permalink
Browse files

Merge pull request #2584 from SebDieBln/MapCanvas_EnterLeave

UI improvement for digitizing maptools
  • Loading branch information
3nids committed Dec 23, 2015
2 parents b602c5c + e8ef77e commit b0bbfc7c86f6e53911f39c802909e13cab71f345
Showing with 17 additions and 0 deletions.
  1. +3 −0 python/gui/qgsmaptoolcapture.sip
  2. +11 −0 src/gui/qgsmaptoolcapture.cpp
  3. +3 −0 src/gui/qgsmaptoolcapture.h
@@ -25,6 +25,9 @@ class QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
//! destructor
virtual ~QgsMapToolCapture();

//! active the tool
virtual void activate();

//! deactive the tool
virtual void deactivate();

@@ -75,8 +75,19 @@ QgsMapToolCapture::~QgsMapToolCapture()
}
}

void QgsMapToolCapture::activate()
{
if ( mTempRubberBand )
mTempRubberBand->show();

QgsMapToolAdvancedDigitizing::activate();
}

void QgsMapToolCapture::deactivate()
{
if ( mTempRubberBand )
mTempRubberBand->hide();

delete mSnappingMarker;
mSnappingMarker = nullptr;

@@ -42,6 +42,9 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
//! destructor
virtual ~QgsMapToolCapture();

//! active the tool
virtual void activate() override;

//! deactive the tool
virtual void deactivate() override;

0 comments on commit b0bbfc7

Please sign in to comment.
You can’t perform that action at this time.