mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
use const abstract geom in virtual handlers
This commit is contained in:
parent
04d79bef6c
commit
f577cf9ed2
@ -346,14 +346,14 @@ geometryCaptured is called just before
|
||||
|
||||
.. versionadded:: 3.24
|
||||
%End
|
||||
virtual void lineCaptured( QgsCurve *line );
|
||||
virtual void lineCaptured( const QgsCurve *line );
|
||||
%Docstring
|
||||
Called when a line is captured
|
||||
geometryCaptured is called just before
|
||||
|
||||
.. versionadded:: 3.24
|
||||
%End
|
||||
virtual void polygonCaptured( QgsCurvePolygon *polygon );
|
||||
virtual void polygonCaptured( const QgsCurvePolygon *polygon );
|
||||
%Docstring
|
||||
Called when a polygon is captured
|
||||
geometryCaptured is called just before
|
||||
|
||||
@ -86,7 +86,7 @@ void QgsMapToolAddPart::pointCaptured( const QgsPoint &point )
|
||||
finalizeEditCommand( layer, errorCode );
|
||||
}
|
||||
|
||||
void QgsMapToolAddPart::lineCaptured( QgsCurve *line )
|
||||
void QgsMapToolAddPart::lineCaptured( const QgsCurve *line )
|
||||
{
|
||||
QgsVectorLayer *layer = getLayerAndCheckSelection();
|
||||
if ( !layer )
|
||||
@ -96,7 +96,7 @@ void QgsMapToolAddPart::lineCaptured( QgsCurve *line )
|
||||
finalizeEditCommand( layer, errorCode );
|
||||
}
|
||||
|
||||
void QgsMapToolAddPart::polygonCaptured( QgsCurvePolygon *polygon )
|
||||
void QgsMapToolAddPart::polygonCaptured( const QgsCurvePolygon *polygon )
|
||||
{
|
||||
QgsVectorLayer *layer = getLayerAndCheckSelection();
|
||||
if ( !layer )
|
||||
|
||||
@ -42,8 +42,8 @@ class APP_EXPORT QgsMapToolAddPart : public QgsMapToolCapture
|
||||
QgsVectorLayer *getLayerAndCheckSelection();
|
||||
|
||||
void pointCaptured( const QgsPoint &point ) override;
|
||||
void lineCaptured( QgsCurve *line ) override;
|
||||
void polygonCaptured( QgsCurvePolygon *polygon ) override;
|
||||
void lineCaptured( const QgsCurve *line ) override;
|
||||
void polygonCaptured( const QgsCurvePolygon *polygon ) override;
|
||||
|
||||
void finalizeEditCommand( QgsVectorLayer *layer, Qgis::GeometryOperationResult errorCode );
|
||||
};
|
||||
|
||||
@ -357,14 +357,14 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
|
||||
* geometryCaptured is called just before
|
||||
* \since QGIS 3.24
|
||||
*/
|
||||
virtual void lineCaptured( QgsCurve *line ) {Q_UNUSED( line )} SIP_FORCE
|
||||
virtual void lineCaptured( const QgsCurve *line ) {Q_UNUSED( line )} SIP_FORCE
|
||||
|
||||
/**
|
||||
* Called when a polygon is captured
|
||||
* geometryCaptured is called just before
|
||||
* \since QGIS 3.24
|
||||
*/
|
||||
virtual void polygonCaptured( QgsCurvePolygon *polygon ) {Q_UNUSED( polygon )} SIP_FORCE
|
||||
virtual void polygonCaptured( const QgsCurvePolygon *polygon ) {Q_UNUSED( polygon )} SIP_FORCE
|
||||
|
||||
//! whether tracing has been requested by the user
|
||||
bool tracingEnabled();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user