Skip to content

Commit

Permalink
Add sip convert for QgsMapToolDigitizeFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jan 19, 2021
1 parent 5920822 commit ecd616b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/gui/auto_generated/qgsmaptool.sip.in
Expand Up @@ -20,6 +20,7 @@
#include <qgsmaptoolpan.h>
#include <qgsmaptoolemitpoint.h>
#include <qgsmaptoolidentify.h>
#include <qgsmaptooldigitizefeature.h>
%End

class QgsMapTool : QObject
Expand All @@ -43,6 +44,8 @@ implemented as map tools.
sipType = sipType_QgsMapToolEmitPoint;
else if ( dynamic_cast<QgsMapToolIdentify *>( sipCpp ) != NULL )
sipType = sipType_QgsMapToolIdentify;
else if ( dynamic_cast<QgsMapToolDigitizeFeature *>( sipCpp ) != NULL )
sipType = sipType_QgsMapToolDigitizeFeature;
else
sipType = NULL;
%End
Expand Down
3 changes: 3 additions & 0 deletions src/gui/qgsmaptool.h
Expand Up @@ -51,6 +51,7 @@ class QMenu;
#include <qgsmaptoolpan.h>
#include <qgsmaptoolemitpoint.h>
#include <qgsmaptoolidentify.h>
#include <qgsmaptooldigitizefeature.h>
% End
#endif

Expand All @@ -74,6 +75,8 @@ class GUI_EXPORT QgsMapTool : public QObject
sipType = sipType_QgsMapToolEmitPoint;
else if ( dynamic_cast<QgsMapToolIdentify *>( sipCpp ) != NULL )
sipType = sipType_QgsMapToolIdentify;
else if ( dynamic_cast<QgsMapToolDigitizeFeature *>( sipCpp ) != NULL )
sipType = sipType_QgsMapToolDigitizeFeature;
else
sipType = NULL;
SIP_END
Expand Down

0 comments on commit ecd616b

Please sign in to comment.