mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -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
|
||||
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