16 #ifndef QGSFIELD_PRIVATE_H
17 #define QGSFIELD_PRIVATE_H
37 #include <QSharedData>
45 class QgsFieldPrivate :
public QSharedData
49 QgsFieldPrivate(
const QString &name = QString(),
50 QVariant::Type type = QVariant::Invalid,
51 QVariant::Type subType = QVariant::Invalid,
55 const QString &comment = QString() )
66 QgsFieldPrivate(
const QgsFieldPrivate &other )
67 : QSharedData( other )
70 , subType( other.subType )
72 , length( other.length )
74 , comment( other.comment )
75 , alias( other.alias )
76 , defaultValueDefinition( other.defaultValueDefinition )
77 , constraints( other.constraints )
81 ~QgsFieldPrivate() =
default;
83 bool operator==(
const QgsFieldPrivate &other )
const
85 return ( ( name == other.name ) && ( type == other.type ) && ( subType == other.subType )
86 && ( length == other.length ) && (
precision == other.precision )
87 && ( alias == other.alias ) && ( defaultValueDefinition == other.defaultValueDefinition )
88 && ( constraints == other.constraints ) );
98 QVariant::Type subType;
124 QgsFieldPrivate &operator=(
const QgsFieldPrivate & ) =
delete;