Skip to content
Permalink
Browse files

SIP convert

  • Loading branch information
suricactus committed Jan 6, 2021
1 parent 415ecc4 commit 8f4bf3e32598dff3388358c8c8bb18dd5d2d8345
@@ -11,6 +11,8 @@





class QgsBasicRelationWidget : QgsRelationWidget
{
%Docstring
@@ -10,6 +10,11 @@



// this is needed for the "convert to subclass" code below to compile
%ModuleHeaderCode
#include "qgsbasicrelationwidget.h"
%End



class QgsRelationWidget : QWidget
@@ -22,6 +27,12 @@ Base class to build new relation widgets.

%TypeHeaderCode
#include "qgsrelationwidget.h"
%End
%ConvertToSubClassCode
if ( qobject_cast<QgsBasicRelationWidget *>( sipCpp ) )
sipType = sipType_QgsBasicRelationWidget;
else
sipType = 0;
%End
public:

@@ -32,11 +32,19 @@
#include "qgsvectorlayerselectionmanager.h"
#include "qgis_gui.h"

#ifdef SIP_RUN
// this is needed for the "convert to subclass" code below to compile
% ModuleHeaderCode
#include "qgsbasicrelationwidget.h"
% End
#endif

class QgsFeature;
class QgsVectorLayer;
class QgsVectorLayerTools;
class QgsMapTool;
class QgsMapToolDigitizeFeature;
class QgsBaseRelationWidget;


/**
@@ -47,6 +55,16 @@ class QgsMapToolDigitizeFeature;
*/
class GUI_EXPORT QgsRelationWidget : public QWidget
{

#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
if ( qobject_cast<QgsBasicRelationWidget *>( sipCpp ) )
sipType = sipType_QgsBasicRelationWidget;
else
sipType = 0;
SIP_END
#endif

Q_OBJECT

public:

0 comments on commit 8f4bf3e

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