diff --git a/python/gui/auto_generated/qgsrubberband.sip.in b/python/gui/auto_generated/qgsrubberband.sip.in index 35a1334edf9..723fd7ea983 100644 --- a/python/gui/auto_generated/qgsrubberband.sip.in +++ b/python/gui/auto_generated/qgsrubberband.sip.in @@ -10,11 +10,6 @@ -%ModuleHeaderCode -// For ConvertToSubClassCode. -#include -%End - class QgsRubberBand : QObject, QgsMapCanvasItem { %Docstring @@ -26,12 +21,6 @@ for tracking the mouse while drawing polylines or polygons. %TypeHeaderCode #include "qgsrubberband.h" -%End -%ConvertToSubClassCode - if ( dynamic_cast( sipCpp ) ) - sipType = sipType_QgsRubberBand; - else - sipType = nullptr; %End public: diff --git a/python/gui/auto_generated/qgsvertexmarker.sip.in b/python/gui/auto_generated/qgsvertexmarker.sip.in index ab742d90292..adf7acb184e 100644 --- a/python/gui/auto_generated/qgsvertexmarker.sip.in +++ b/python/gui/auto_generated/qgsvertexmarker.sip.in @@ -9,11 +9,6 @@ -%ModuleHeaderCode -// For ConvertToSubClassCode. -#include -%End - class QgsVertexMarker : QgsMapCanvasItem { %Docstring @@ -22,12 +17,6 @@ A class for marking vertices of features using e.g. circles or 'x'. %TypeHeaderCode #include "qgsvertexmarker.h" -%End -%ConvertToSubClassCode - if ( dynamic_cast( sipCpp ) ) - sipType = sipType_QgsVertexMarker; - else - sipType = nullptr; %End public: diff --git a/src/gui/qgsrubberband.h b/src/gui/qgsrubberband.h index 98b50f7d60e..85c2a365757 100644 --- a/src/gui/qgsrubberband.h +++ b/src/gui/qgsrubberband.h @@ -31,13 +31,6 @@ class QgsVectorLayer; class QPaintEvent; -#ifdef SIP_RUN -% ModuleHeaderCode -// For ConvertToSubClassCode. -#include -% End -#endif - /** * \ingroup gui * A class for drawing transient features (e.g. digitizing lines) on the map. @@ -49,14 +42,6 @@ class GUI_EXPORT QgsRubberBand : public QObject, public QgsMapCanvasItem { Q_OBJECT -#ifdef SIP_RUN - SIP_CONVERT_TO_SUBCLASS_CODE - if ( dynamic_cast( sipCpp ) ) - sipType = sipType_QgsRubberBand; - else - sipType = nullptr; - SIP_END -#endif public: Q_PROPERTY( QColor fillColor READ fillColor WRITE setFillColor ) diff --git a/src/gui/qgsvertexmarker.h b/src/gui/qgsvertexmarker.h index 16ffcc027bb..7ca72e148a2 100644 --- a/src/gui/qgsvertexmarker.h +++ b/src/gui/qgsvertexmarker.h @@ -22,13 +22,6 @@ class QPainter; -#ifdef SIP_RUN -% ModuleHeaderCode -// For ConvertToSubClassCode. -#include -% End -#endif - /** * \ingroup gui * A class for marking vertices of features using e.g. circles or 'x'. @@ -36,14 +29,6 @@ class QPainter; class GUI_EXPORT QgsVertexMarker : public QgsMapCanvasItem { -#ifdef SIP_RUN - SIP_CONVERT_TO_SUBCLASS_CODE - if ( dynamic_cast( sipCpp ) ) - sipType = sipType_QgsVertexMarker; - else - sipType = nullptr; - SIP_END -#endif public: //! Icons