QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgsattributeeditorfield.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsattributeeditorfield.cpp - QgsAttributeEditorField
3
4 ---------------------
5 begin : 12.01.2021
6 copyright : (C) 2021 by Denis Rouzaud
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
17
18#include <QDomElement>
19
26
27
28void QgsAttributeEditorField::saveConfiguration( QDomElement &elem, QDomDocument &doc ) const
29{
30 Q_UNUSED( doc )
31 elem.setAttribute( QStringLiteral( "index" ), mIdx );
32}
33
34void QgsAttributeEditorField::loadConfiguration( const QDomElement &element, const QString &layerId, const QgsReadWriteContext &context, const QgsFields &fields )
35{
36 Q_UNUSED( element )
37 Q_UNUSED( layerId )
38 Q_UNUSED( context )
39 Q_UNUSED( fields )
40}
41
42QString QgsAttributeEditorField::typeIdentifier() const
43{
44 return QStringLiteral( "attributeEditorField" );
45}
This is an abstract base class for any elements of a drag and drop form.
QgsAttributeEditorElement * parent() const
Gets the parent of this element.
QString name() const
Returns the name of this element.
This element will load a field's widget onto the form.
QgsAttributeEditorElement * clone(QgsAttributeEditorElement *parent) const override
Returns a clone of this element.
Container of fields for a vector layer.
Definition qgsfields.h:46
The class is used as a container of context for various read/write operations on other objects.