QGIS API Documentation
3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
src
core
editform
qgsattributeeditorspacerelement.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributeeditorspacerelement.h - QgsAttributeEditorSpacerElement
3
4
---------------------
5
begin : 16.1.2023
6
copyright : (C) 2023 by Alessandro Pasotti
7
email : elpaso at itopen dot it
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
***************************************************************************/
16
#ifndef QGSATTRIBUTEEDITORSPACERELEMENT_H
17
#define QGSATTRIBUTEEDITORSPACERELEMENT_H
18
19
#include "
qgsattributeeditorelement.h
"
20
#include "qgis_core.h"
21
28
class
CORE_EXPORT
QgsAttributeEditorSpacerElement
:
public
QgsAttributeEditorElement
29
{
30
public
:
31
38
QgsAttributeEditorSpacerElement
(
const
QString &name,
QgsAttributeEditorElement
*parent )
39
:
QgsAttributeEditorElement
(
Qgis
::AttributeEditorType::SpacerElement, name, parent )
40
{}
41
42
QgsAttributeEditorElement
*
clone
(
QgsAttributeEditorElement
*parent )
const
override
SIP_FACTORY
;
43
47
bool
drawLine()
const
;
48
53
void
setDrawLine(
bool
drawLine );
54
55
private
:
56
void
saveConfiguration( QDomElement &elem, QDomDocument &doc )
const override
;
57
void
loadConfiguration(
const
QDomElement &element,
const
QString &layerId,
const
QgsReadWriteContext
&context,
const
QgsFields
&fields )
override
;
58
QString typeIdentifier()
const override
;
59
bool
mDrawLine =
false
;
60
};
61
62
#endif
// QGSATTRIBUTEEDITORSPACERELEMENT_H
Qgis
The Qgis class provides global constants for use throughout the application.
Definition
qgis.h:54
QgsAttributeEditorElement
This is an abstract base class for any elements of a drag and drop form.
Definition
qgsattributeeditorelement.h:43
QgsAttributeEditorElement::clone
virtual QgsAttributeEditorElement * clone(QgsAttributeEditorElement *parent) const =0
Returns a clone of this element.
QgsAttributeEditorSpacerElement
An attribute editor widget that will represent a spacer.
Definition
qgsattributeeditorspacerelement.h:29
QgsAttributeEditorSpacerElement::QgsAttributeEditorSpacerElement
QgsAttributeEditorSpacerElement(const QString &name, QgsAttributeEditorElement *parent)
Creates a new element which represents a spacer.
Definition
qgsattributeeditorspacerelement.h:38
QgsFields
Container of fields for a vector layer.
Definition
qgsfields.h:45
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:35
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
qgsattributeeditorelement.h
Generated on Mon Oct 30 2023 18:42:25 for QGIS API Documentation by
1.9.8