Skip to content
Permalink
Browse files

Properly convert to QgsVectorLayerEditpassTrough subclass

  • Loading branch information
m-kuhn committed Mar 29, 2019
1 parent 979debc commit 6d52849264ad2e7ded6d0d6c34732ad6e6346478
@@ -8,11 +8,21 @@



%ModuleHeaderCode
#include <qgsvectorlayereditpassthrough.h>
%End

class QgsVectorLayerEditPassthrough : QgsVectorLayerEditBuffer
{

%TypeHeaderCode
#include "qgsvectorlayereditpassthrough.h"
%End
%ConvertToSubClassCode
if ( qobject_cast<QgsVectorLayerEditPassthrough *>( sipCpp ) )
sipType = sipType_QgsVectorLayerEditPassthrough;
else
sipType = nullptr;
%End
public:
QgsVectorLayerEditPassthrough( QgsVectorLayer *layer );
@@ -22,12 +22,28 @@ class QgsVectorLayer;
class QgsVectorLayerUndoPassthroughCommand;
class QgsTransaction;

#ifdef SIP_RUN
% ModuleHeaderCode
#include <qgsvectorlayereditpassthrough.h>
% End
#endif

/**
* \ingroup core
* \class QgsVectorLayerEditPassthrough
*/
class CORE_EXPORT QgsVectorLayerEditPassthrough : public QgsVectorLayerEditBuffer
{

#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
if ( qobject_cast<QgsVectorLayerEditPassthrough *>( sipCpp ) )
sipType = sipType_QgsVectorLayerEditPassthrough;
else
sipType = nullptr;
SIP_END
#endif

Q_OBJECT
public:
QgsVectorLayerEditPassthrough( QgsVectorLayer *layer );

0 comments on commit 6d52849

Please sign in to comment.
You can’t perform that action at this time.