mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Hide temporary rubberband when maptool is not active.
This commit is contained in:
parent
a66a8eae59
commit
e8ef77e781
@ -25,6 +25,9 @@ class QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
|
|||||||
//! destructor
|
//! destructor
|
||||||
virtual ~QgsMapToolCapture();
|
virtual ~QgsMapToolCapture();
|
||||||
|
|
||||||
|
//! active the tool
|
||||||
|
virtual void activate();
|
||||||
|
|
||||||
//! deactive the tool
|
//! deactive the tool
|
||||||
virtual void deactivate();
|
virtual void deactivate();
|
||||||
|
|
||||||
|
@ -75,8 +75,19 @@ QgsMapToolCapture::~QgsMapToolCapture()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QgsMapToolCapture::activate()
|
||||||
|
{
|
||||||
|
if ( mTempRubberBand )
|
||||||
|
mTempRubberBand->show();
|
||||||
|
|
||||||
|
QgsMapToolAdvancedDigitizing::activate();
|
||||||
|
}
|
||||||
|
|
||||||
void QgsMapToolCapture::deactivate()
|
void QgsMapToolCapture::deactivate()
|
||||||
{
|
{
|
||||||
|
if ( mTempRubberBand )
|
||||||
|
mTempRubberBand->hide();
|
||||||
|
|
||||||
delete mSnappingMarker;
|
delete mSnappingMarker;
|
||||||
mSnappingMarker = nullptr;
|
mSnappingMarker = nullptr;
|
||||||
|
|
||||||
|
@ -42,6 +42,9 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
|
|||||||
//! destructor
|
//! destructor
|
||||||
virtual ~QgsMapToolCapture();
|
virtual ~QgsMapToolCapture();
|
||||||
|
|
||||||
|
//! active the tool
|
||||||
|
virtual void activate() override;
|
||||||
|
|
||||||
//! deactive the tool
|
//! deactive the tool
|
||||||
virtual void deactivate() override;
|
virtual void deactivate() override;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user