16 #ifndef QGSFIELD_PRIVATE_H
17 #define QGSFIELD_PRIVATE_H
39 #include <QSharedData>
47 class QgsFieldPrivate :
public QSharedData
51 QgsFieldPrivate(
const QString &name = QString(),
52 QVariant::Type type = QVariant::Invalid,
53 QVariant::Type subType = QVariant::Invalid,
57 const QString &comment = QString() )
68 QgsFieldPrivate(
const QgsFieldPrivate &other )
69 : QSharedData( other )
72 , subType( other.subType )
74 , length( other.length )
76 , comment( other.comment )
77 , alias( other.alias )
78 , flags( other.flags )
79 , defaultValueDefinition( other.defaultValueDefinition )
80 , constraints( other.constraints )
84 ~QgsFieldPrivate() =
default;
86 bool operator==(
const QgsFieldPrivate &other )
const
88 return ( ( name == other.name ) && ( type == other.type ) && ( subType == other.subType )
89 && ( length == other.length ) && (
precision == other.precision )
90 && ( alias == other.alias ) && ( defaultValueDefinition == other.defaultValueDefinition )
91 && ( constraints == other.constraints ) && ( flags == other.flags ) );
101 QVariant::Type subType;
130 QgsFieldPrivate &operator=(
const QgsFieldPrivate & ) =
delete;