Skip to content

Commit

Permalink
Convert cpp type to python type
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jan 7, 2021
1 parent e786da8 commit 5d47b5d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Expand Up @@ -242,6 +242,12 @@ It will only be instantiated by {:py:class:`QgsAbstractRelationEditorWidgetFacto

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

Expand Down
10 changes: 10 additions & 0 deletions src/gui/qgsabstractrelationeditorwidget.h
Expand Up @@ -288,6 +288,16 @@ class GUI_EXPORT QgsAbstractRelationEditorWidget : public QWidget
*/
class GUI_EXPORT QgsAbstractRelationEditorConfigWidget : public QWidget
{

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

Q_OBJECT
public:

Expand Down

0 comments on commit 5d47b5d

Please sign in to comment.