QGIS API Documentation
3.43.0-Master (3ee7834ace6)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
editform
qgsattributeeditorspacerelement.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributeeditorspacerelement.cpp - 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
#include "
qgsattributeeditorspacerelement.h
"
17
#include <QDomElement>
18
19
QgsAttributeEditorElement
*
QgsAttributeEditorSpacerElement::clone
(
QgsAttributeEditorElement
*parent )
const
20
{
21
return
new
QgsAttributeEditorSpacerElement
(
name
(),
parent
);
22
}
19
QgsAttributeEditorElement
*
QgsAttributeEditorSpacerElement::clone
(
QgsAttributeEditorElement
*parent )
const
{
…
}
23
24
void
QgsAttributeEditorSpacerElement::saveConfiguration( QDomElement &elem, QDomDocument &doc )
const
25
{
26
Q_UNUSED( doc );
27
elem.setAttribute( QStringLiteral(
"drawLine"
), mDrawLine ? 1 : 0 );
28
}
29
30
void
QgsAttributeEditorSpacerElement::loadConfiguration(
const
QDomElement &element,
const
QString &layerId,
const
QgsReadWriteContext
&context,
const
QgsFields
&fields )
31
{
32
// Nothing to load
33
Q_UNUSED( layerId );
34
Q_UNUSED( context );
35
Q_UNUSED( fields );
36
37
bool
ok;
38
const
bool
drawLine
= element.attribute( QStringLiteral(
"drawLine"
) ).toInt( &ok );
39
if
( ok )
40
mDrawLine =
drawLine
;
41
}
42
43
QString QgsAttributeEditorSpacerElement::typeIdentifier()
const
44
{
45
return
QStringLiteral(
"attributeEditorSpacerElement"
);
46
}
47
48
bool
QgsAttributeEditorSpacerElement::drawLine
()
const
49
{
50
return
mDrawLine;
51
}
48
bool
QgsAttributeEditorSpacerElement::drawLine
()
const
{
…
}
52
53
void
QgsAttributeEditorSpacerElement::setDrawLine
(
bool
drawLine )
54
{
55
mDrawLine =
drawLine
;
56
}
53
void
QgsAttributeEditorSpacerElement::setDrawLine
(
bool
drawLine ) {
…
}
QgsAttributeEditorElement
This is an abstract base class for any elements of a drag and drop form.
Definition
qgsattributeeditorelement.h:43
QgsAttributeEditorElement::parent
QgsAttributeEditorElement * parent() const
Gets the parent of this element.
Definition
qgsattributeeditorelement.h:147
QgsAttributeEditorElement::name
QString name() const
Returns the name of this element.
Definition
qgsattributeeditorelement.h:134
QgsAttributeEditorSpacerElement
An attribute editor widget that will represent a spacer.
Definition
qgsattributeeditorspacerelement.h:29
QgsAttributeEditorSpacerElement::setDrawLine
void setDrawLine(bool drawLine)
Sets a flag to define if the spacer element will contain an horizontal line.
Definition
qgsattributeeditorspacerelement.cpp:53
QgsAttributeEditorSpacerElement::clone
QgsAttributeEditorElement * clone(QgsAttributeEditorElement *parent) const override
Returns a clone of this element.
Definition
qgsattributeeditorspacerelement.cpp:19
QgsAttributeEditorSpacerElement::drawLine
bool drawLine() const
Returns true if the spacer element will contain an horizontal line.
Definition
qgsattributeeditorspacerelement.cpp:48
QgsFields
Container of fields for a vector layer.
Definition
qgsfields.h:46
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:34
qgsattributeeditorspacerelement.h
Generated on Mon Mar 24 2025 21:55:38 for QGIS API Documentation by
1.9.8