16#ifndef QGSFIELD_PRIVATE_H
17#define QGSFIELD_PRIVATE_H
49class QgsFieldPrivate :
public QSharedData
53 const QString &name = QString(),
54 QMetaType::Type type = QMetaType::Type::UnknownType,
55 QMetaType::Type subType = QMetaType::Type::UnknownType,
56 const QString &typeName = QString(),
59 const QString &comment = QString(),
60 const QMap< int, QVariant > &metadata = QMap< int, QVariant >()
65 , typeName( typeName )
69 , metadata( metadata )
72 QgsFieldPrivate(
const QgsFieldPrivate &other )
73 : QSharedData( other )
76 , subType( other.subType )
77 , typeName( other.typeName )
78 , length( other.length )
79 , precision( other.precision )
80 , comment( other.comment )
81 , metadata( other.metadata )
82 , alias( other.alias )
83 , flags( other.flags )
84 , defaultValueDefinition( other.defaultValueDefinition )
85 , constraints( other.constraints )
86 , editorWidgetSetup( other.editorWidgetSetup )
87 , splitPolicy( other.splitPolicy )
88 , duplicatePolicy( other.duplicatePolicy )
89 , mergePolicy( other.mergePolicy )
90 , isReadOnly( other.isReadOnly )
93 ~QgsFieldPrivate() =
default;
96 bool operator==(
const QgsFieldPrivate &other )
const
99 ( name == other.name )
100 && ( type == other.type )
101 && ( subType == other.subType )
102 && ( length == other.length )
103 && ( precision == other.precision )
104 && ( metadata == other.metadata )
105 && ( alias == other.alias )
106 && ( defaultValueDefinition == other.defaultValueDefinition )
107 && ( constraints == other.constraints )
108 && ( flags == other.flags )
109 && ( splitPolicy == other.splitPolicy )
110 && ( duplicatePolicy == other.duplicatePolicy )
111 && ( mergePolicy == other.mergePolicy )
112 && ( isReadOnly == other.isReadOnly )
113 && ( editorWidgetSetup == other.editorWidgetSetup )
121 QMetaType::Type type;
124 QMetaType::Type subType;
139 QMap< int, QVariant > metadata;
148 QgsDefaultValue defaultValueDefinition;
151 QgsFieldConstraints constraints;
153 QgsEditorWidgetSetup editorWidgetSetup;
165 bool isReadOnly =
false;
168 QgsFieldPrivate &operator=(
const QgsFieldPrivate & ) =
delete;
FieldDomainMergePolicy
Merge policy for field domains.
@ UnsetField
Clears the field value so that the data provider backend will populate using any backend triggers or ...
FieldDomainSplitPolicy
Split policy for field domains.
@ Duplicate
Duplicate original value.
FieldDuplicatePolicy
Duplicate policy for fields.
@ Duplicate
Duplicate original value.
@ NoFlag
No flag is defined.
QFlags< FieldConfigurationFlag > FieldConfigurationFlags
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)