mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Merge pull request #2584 from SebDieBln/MapCanvas_EnterLeave
UI improvement for digitizing maptools
This commit is contained in:
commit
b0bbfc7c86
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user