mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
QgsAttributeEditorElement is an abstrat class
This commit is contained in:
parent
cfeab26bd8
commit
c65f76266c
@ -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:
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user