Skip to content

Commit

Permalink
Add ConvertToSubClass code to vertexmarker
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 8, 2017
1 parent cee7bae commit c665a9f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/gui/qgsvertexmarker.sip
@@ -1,10 +1,20 @@
%ModuleHeaderCode
#include <qgsvertexmarker.h>
%End

class QgsVertexMarker : QgsMapCanvasItem
{
%TypeHeaderCode
#include <qgsvertexmarker.h>
%End

%ConvertToSubClassCode
if ( dynamic_cast< QgsVertexMarker* > ( sipCpp ) )
sipType = sipType_QgsVertexMarker;
else
sipType = nullptr;
%End

public:

//! Icons
Expand Down

0 comments on commit c665a9f

Please sign in to comment.