Skip to content

Commit c65f762

Browse files
committedApr 7, 2017
QgsAttributeEditorElement is an abstrat class
1 parent cfeab26 commit c65f762

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed
 

‎python/core/qgsattributeeditorelement.sip

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111

12-
class QgsAttributeEditorElement
12+
class QgsAttributeEditorElement /Abstract/
1313
{
1414

1515
%TypeHeaderCode
@@ -51,7 +51,6 @@ class QgsAttributeEditorElement
5151
\param parent
5252
%End
5353

54-
5554
virtual ~QgsAttributeEditorElement();
5655

5756
QString name() const;
@@ -119,15 +118,6 @@ class QgsAttributeEditorContainer : QgsAttributeEditorElement
119118

120119
%TypeHeaderCode
121120
#include "qgsattributeeditorelement.h"
122-
%End
123-
124-
%ConvertToSubClassCode
125-
switch ( sipCpp->type() )
126-
{
127-
case QgsAttributeEditorElement::AeTypeContainer: sipType = sipType_QgsAttributeEditorContainer; break;
128-
case QgsAttributeEditorElement::AeTypeField: sipType = sipType_QgsAttributeEditorField; break;
129-
case QgsAttributeEditorElement::AeTypeRelation: sipType = sipType_QgsAttributeEditorRelation; break;
130-
}
131121
%End
132122
public:
133123

‎src/core/qgsattributeeditorelement.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class QgsRelationManager;
3232
* layer.
3333
*/
3434

35-
class CORE_EXPORT QgsAttributeEditorElement
35+
class CORE_EXPORT QgsAttributeEditorElement SIP_ABSTRACT
3636
{
3737

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

80-
8180
virtual ~QgsAttributeEditorElement() = default;
8281

8382
/**
@@ -164,17 +163,6 @@ class CORE_EXPORT QgsAttributeEditorElement
164163
*/
165164
class CORE_EXPORT QgsAttributeEditorContainer : public QgsAttributeEditorElement
166165
{
167-
168-
#ifdef SIP_RUN
169-
SIP_CONVERT_TO_SUBCLASS_CODE
170-
switch ( sipCpp->type() )
171-
{
172-
case QgsAttributeEditorElement::AeTypeContainer: sipType = sipType_QgsAttributeEditorContainer; break;
173-
case QgsAttributeEditorElement::AeTypeField: sipType = sipType_QgsAttributeEditorField; break;
174-
case QgsAttributeEditorElement::AeTypeRelation: sipType = sipType_QgsAttributeEditorRelation; break;
175-
}
176-
SIP_END
177-
#endif
178166
public:
179167

180168
/**

0 commit comments

Comments
 (0)
Please sign in to comment.