mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Properly convert to QgsVectorLayerEditpassTrough subclass
This commit is contained in:
parent
356ec23afa
commit
1bb3f99f0e
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user