Skip to content

Commit

Permalink
QgsAttributeEditorElement is an abstrat class
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 7, 2017
1 parent cfeab26 commit c65f762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
12 changes: 1 addition & 11 deletions python/core/qgsattributeeditorelement.sip
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@



class QgsAttributeEditorElement
class QgsAttributeEditorElement /Abstract/
{

%TypeHeaderCode
Expand Down Expand Up @@ -51,7 +51,6 @@ class QgsAttributeEditorElement
\param parent
%End


virtual ~QgsAttributeEditorElement();

QString name() const;
Expand Down Expand Up @@ -119,15 +118,6 @@ class QgsAttributeEditorContainer : QgsAttributeEditorElement

%TypeHeaderCode
#include "qgsattributeeditorelement.h"
%End

%ConvertToSubClassCode
switch ( sipCpp->type() )
{
case QgsAttributeEditorElement::AeTypeContainer: sipType = sipType_QgsAttributeEditorContainer; break;
case QgsAttributeEditorElement::AeTypeField: sipType = sipType_QgsAttributeEditorField; break;
case QgsAttributeEditorElement::AeTypeRelation: sipType = sipType_QgsAttributeEditorRelation; break;
}
%End
public:

Expand Down
14 changes: 1 addition & 13 deletions src/core/qgsattributeeditorelement.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class QgsRelationManager;
* layer.
*/

class CORE_EXPORT QgsAttributeEditorElement
class CORE_EXPORT QgsAttributeEditorElement SIP_ABSTRACT
{

#ifdef SIP_RUN
Expand Down Expand Up @@ -77,7 +77,6 @@ class CORE_EXPORT QgsAttributeEditorElement
, mShowLabel( true )
{}


virtual ~QgsAttributeEditorElement() = default;

/**
Expand Down Expand Up @@ -164,17 +163,6 @@ class CORE_EXPORT QgsAttributeEditorElement
*/
class CORE_EXPORT QgsAttributeEditorContainer : public QgsAttributeEditorElement
{

#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
switch ( sipCpp->type() )
{
case QgsAttributeEditorElement::AeTypeContainer: sipType = sipType_QgsAttributeEditorContainer; break;
case QgsAttributeEditorElement::AeTypeField: sipType = sipType_QgsAttributeEditorField; break;
case QgsAttributeEditorElement::AeTypeRelation: sipType = sipType_QgsAttributeEditorRelation; break;
}
SIP_END
#endif
public:

/**
Expand Down

0 comments on commit c65f762

Please sign in to comment.