QgsAttributeEditorElement is an abstrat class

This commit is contained in:
Matthias Kuhn 2017-04-05 14:14:50 +02:00
parent cfeab26bd8
commit c65f76266c
2 changed files with 2 additions and 24 deletions

View File

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

View File

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