17#ifndef QGSFIELDSITEM_H
18#define QGSFIELDSITEM_H
51 const QString &connectionUri,
52 const QString &providerKey,
53 const QString &schema,
54 const QString &tableName );
59 SIP_PYOBJECT __repr__();
61 QString
str = QStringLiteral(
"<QgsFieldsItem: %1>" ).arg( sipCpp->path() );
62 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
68 QIcon
icon()
override;
73 QString schema()
const;
78 QString tableName()
const;
83 QString connectionUri()
const;
107 QString mConnectionUri;
108 bool mCanRename =
false;
109 std::unique_ptr<QgsAbstractDatabaseProviderConnection::TableProperty> mTableProperty;
136 SIP_PYOBJECT __repr__();
138 QString
str = QStringLiteral(
"<QgsFieldItem: %1>" ).arg( sipCpp->name() );
139 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
143 QIcon
icon()
override;
Base class for all items in the model.
virtual QVector< QgsDataItem * > createChildren()
Create children.
virtual bool equal(const QgsDataItem *other)
Returns true if this item is equal to another item (by testing item type and path).
A layer field item, information about the connection URI, the schema and the table as well as the lay...
QgsField field() const
Returns the field definition.
Encapsulate a field in an attribute table or data source.
A collection of field items with some internal logic to retrieve the fields and a the vector layer in...
bool canRenameFields() const
Returns true if the connection supports renaming fields.
Represents a vector layer which manages a vector based data sets.
The TableProperty class represents a database table or view.