Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -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: |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.