16#ifndef QGSFIELD_PRIVATE_H
17#define QGSFIELD_PRIVATE_H
48class QgsFieldPrivate :
public QSharedData
52 QgsFieldPrivate(
const QString &name = QString(),
53 QMetaType::Type type = QMetaType::Type::UnknownType,
54 QMetaType::Type subType = QMetaType::Type::UnknownType,
58 const QString &comment = QString(),
59 const QMap< int, QVariant > &metadata = QMap< int, QVariant >() )
67 , metadata( metadata )
71 QgsFieldPrivate(
const QgsFieldPrivate &other )
72 : QSharedData( other )
75 , subType( other.subType )
77 , length( other.length )
79 , comment( other.comment )
80 , metadata( other.metadata )
81 , alias( other.alias )
82 , flags( other.flags )
83 , defaultValueDefinition( other.defaultValueDefinition )
84 , constraints( other.constraints )
85 , editorWidgetSetup( other.editorWidgetSetup )
86 , splitPolicy( other.splitPolicy )
87 , duplicatePolicy( other.duplicatePolicy )
88 , isReadOnly( other.isReadOnly )
92 ~QgsFieldPrivate() =
default;
95 bool operator==(
const QgsFieldPrivate &other )
const
97 return ( ( name == other.name ) && ( type == other.type ) && ( subType == other.subType )
98 && ( length == other.length ) && (
precision == other.precision )
99 && ( metadata == other.metadata )
100 && ( alias == other.alias ) && ( defaultValueDefinition == other.defaultValueDefinition )
101 && ( constraints == other.constraints ) && ( flags == other.flags )
102 && ( splitPolicy == other.splitPolicy )
103 && ( duplicatePolicy == other.duplicatePolicy )
104 && ( isReadOnly == other.isReadOnly )
105 && ( editorWidgetSetup == other.editorWidgetSetup ) );
112 QMetaType::Type type;
115 QMetaType::Type subType;
130 QMap< int, QVariant > metadata;
153 bool isReadOnly =
false;
156 QgsFieldPrivate &operator=(
const QgsFieldPrivate & ) =
delete;
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...
The QgsDefaultValue class provides a container for managing client side default values for fields.
Stores information about constraints which may be present on a field.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)