mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-30 00:29:39 -05:00
fix API break
This commit is contained in:
parent
2e59094602
commit
0bf090e972
@ -48,6 +48,11 @@ QgsMapToolAddFeature::QgsMapToolAddFeature( QgsMapCanvas *canvas, QgsAdvancedDig
|
||||
connect( QgisApp::instance(), &QgisApp::projectRead, this, &QgsMapToolAddFeature::stopCapturing );
|
||||
}
|
||||
|
||||
QgsMapToolAddFeature::QgsMapToolAddFeature( QgsMapCanvas *canvas, CaptureMode mode )
|
||||
: QgsMapToolAddFeature( canvas, QgisApp::instance()->cadDockWidget(), mode )
|
||||
{
|
||||
}
|
||||
|
||||
bool QgsMapToolAddFeature::addFeature( QgsVectorLayer *vlayer, const QgsFeature &f, bool showModal )
|
||||
{
|
||||
QgsFeature feat( f );
|
||||
|
||||
@ -20,10 +20,17 @@
|
||||
class APP_EXPORT QgsMapToolAddFeature : public QgsMapToolDigitizeFeature
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! \since QGIS 2.12
|
||||
//! \since QGIS 3.24
|
||||
QgsMapToolAddFeature( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode );
|
||||
|
||||
/**
|
||||
* \since QGIS 2.12
|
||||
* \deprecated Will be made in QGIS 4
|
||||
*/
|
||||
QgsMapToolAddFeature( QgsMapCanvas *canvas, CaptureMode mode );
|
||||
|
||||
private slots:
|
||||
|
||||
void featureDigitized( const QgsFeature &feature ) override;
|
||||
|
||||
@ -16,8 +16,10 @@
|
||||
|
||||
#include "qgsgrassaddfeature.h"
|
||||
|
||||
#include "qgisapp.h"
|
||||
|
||||
QgsGrassAddFeature::QgsGrassAddFeature( QgsMapCanvas *canvas, CaptureMode mode )
|
||||
: QgsMapToolAddFeature( canvas, mode )
|
||||
: QgsMapToolAddFeature( canvas, QgisApp::instance()->cadDockWidget(), mode )
|
||||
{
|
||||
setCheckGeometryType( false );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user