Skip to content
Permalink
Browse files
QgsAttributeEditorElement is an abstrat class
  • Loading branch information
m-kuhn committed Apr 7, 2017
1 parent cfeab26 commit c65f76266c7168eb0f598d32f78babda3e56493e
Showing with 2 additions and 24 deletions.
  1. +1 −11 python/core/qgsattributeeditorelement.sip
  2. +1 −13 src/core/qgsattributeeditorelement.h
@@ -9,7 +9,7 @@



class QgsAttributeEditorElement
class QgsAttributeEditorElement /Abstract/
{

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


virtual ~QgsAttributeEditorElement();

QString name() const;
@@ -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:

@@ -32,7 +32,7 @@ class QgsRelationManager;
* layer.
*/

class CORE_EXPORT QgsAttributeEditorElement
class CORE_EXPORT QgsAttributeEditorElement SIP_ABSTRACT
{

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


virtual ~QgsAttributeEditorElement() = default;

/**
@@ -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:

/**

0 comments on commit c65f762

Please sign in to comment.