mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Revert "Remove SIP convert to subclass code for QgsRubberBand and QgsVertexMarker"
This reverts commit 4b014e6e84093fc59ce9ee085657161b56be189c.
This commit is contained in:
parent
23e59c36a3
commit
cb688cbbcc
@ -10,6 +10,11 @@
|
||||
|
||||
|
||||
|
||||
%ModuleHeaderCode
|
||||
// For ConvertToSubClassCode.
|
||||
#include <qgsrubberband.h>
|
||||
%End
|
||||
|
||||
class QgsRubberBand : QObject, QgsMapCanvasItem
|
||||
{
|
||||
%Docstring
|
||||
@ -21,6 +26,12 @@ for tracking the mouse while drawing polylines or polygons.
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsrubberband.h"
|
||||
%End
|
||||
%ConvertToSubClassCode
|
||||
if ( dynamic_cast<QgsRubberBand *>( sipCpp ) )
|
||||
sipType = sipType_QgsRubberBand;
|
||||
else
|
||||
sipType = nullptr;
|
||||
%End
|
||||
public:
|
||||
|
||||
|
@ -9,6 +9,11 @@
|
||||
|
||||
|
||||
|
||||
%ModuleHeaderCode
|
||||
// For ConvertToSubClassCode.
|
||||
#include <qgsvertexmarker.h>
|
||||
%End
|
||||
|
||||
class QgsVertexMarker : QgsMapCanvasItem
|
||||
{
|
||||
%Docstring
|
||||
@ -17,6 +22,12 @@ A class for marking vertices of features using e.g. circles or 'x'.
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsvertexmarker.h"
|
||||
%End
|
||||
%ConvertToSubClassCode
|
||||
if ( dynamic_cast<QgsVertexMarker *>( sipCpp ) )
|
||||
sipType = sipType_QgsVertexMarker;
|
||||
else
|
||||
sipType = nullptr;
|
||||
%End
|
||||
public:
|
||||
|
||||
|
@ -31,6 +31,13 @@
|
||||
class QgsVectorLayer;
|
||||
class QPaintEvent;
|
||||
|
||||
#ifdef SIP_RUN
|
||||
% ModuleHeaderCode
|
||||
// For ConvertToSubClassCode.
|
||||
#include <qgsrubberband.h>
|
||||
% End
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \ingroup gui
|
||||
* A class for drawing transient features (e.g. digitizing lines) on the map.
|
||||
@ -42,6 +49,14 @@ class GUI_EXPORT QgsRubberBand : public QObject, public QgsMapCanvasItem
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
#ifdef SIP_RUN
|
||||
SIP_CONVERT_TO_SUBCLASS_CODE
|
||||
if ( dynamic_cast<QgsRubberBand *>( sipCpp ) )
|
||||
sipType = sipType_QgsRubberBand;
|
||||
else
|
||||
sipType = nullptr;
|
||||
SIP_END
|
||||
#endif
|
||||
public:
|
||||
|
||||
Q_PROPERTY( QColor fillColor READ fillColor WRITE setFillColor )
|
||||
|
@ -22,6 +22,13 @@
|
||||
|
||||
class QPainter;
|
||||
|
||||
#ifdef SIP_RUN
|
||||
% ModuleHeaderCode
|
||||
// For ConvertToSubClassCode.
|
||||
#include <qgsvertexmarker.h>
|
||||
% End
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \ingroup gui
|
||||
* A class for marking vertices of features using e.g. circles or 'x'.
|
||||
@ -29,6 +36,14 @@ class QPainter;
|
||||
class GUI_EXPORT QgsVertexMarker : public QgsMapCanvasItem
|
||||
{
|
||||
|
||||
#ifdef SIP_RUN
|
||||
SIP_CONVERT_TO_SUBCLASS_CODE
|
||||
if ( dynamic_cast<QgsVertexMarker *>( sipCpp ) )
|
||||
sipType = sipType_QgsVertexMarker;
|
||||
else
|
||||
sipType = nullptr;
|
||||
SIP_END
|
||||
#endif
|
||||
public:
|
||||
|
||||
//! Icons
|
||||
|
Loading…
x
Reference in New Issue
Block a user