QGIS API Documentation
3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
src
gui
vector
qgsattributesformtreeviewindicator.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributesformtreeviewindicator.cpp
3
---------------------
4
begin : June 2025
5
copyright : (C) 2025 by Germán Carrillo
6
email : german at opengis dot ch
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgsattributesformtreeviewindicator.h
"
17
18
#include "moc_qgsattributesformtreeviewindicator.cpp"
19
20
QgsAttributesFormTreeViewIndicator::QgsAttributesFormTreeViewIndicator
( QObject *parent )
21
: QObject { parent }
22
{
23
}
24
25
QIcon
QgsAttributesFormTreeViewIndicator::icon
()
const
26
{
27
return
mIcon;
28
}
29
30
void
QgsAttributesFormTreeViewIndicator::setIcon
(
const
QIcon &
icon
)
31
{
32
mIcon =
icon
;
33
emit
changed
();
34
}
35
36
QString
QgsAttributesFormTreeViewIndicator::toolTip
()
const
37
{
38
return
mToolTip;
39
}
40
41
void
QgsAttributesFormTreeViewIndicator::setToolTip
(
const
QString &tip )
42
{
43
mToolTip = tip;
44
}
QgsAttributesFormTreeViewIndicator::changed
void changed()
Emitted when the indicator changes state (e.g.
QgsAttributesFormTreeViewIndicator::QgsAttributesFormTreeViewIndicator
QgsAttributesFormTreeViewIndicator(QObject *parent=nullptr)
Constructs an indicator, optionally transferring ownership to a parent QObject.
Definition
qgsattributesformtreeviewindicator.cpp:20
QgsAttributesFormTreeViewIndicator::setToolTip
void setToolTip(const QString &tip)
Sets tool tip text for the indicator.
Definition
qgsattributesformtreeviewindicator.cpp:41
QgsAttributesFormTreeViewIndicator::toolTip
QString toolTip() const
Returns tool tip text that will be shown when user hovers mouse over the indicator.
Definition
qgsattributesformtreeviewindicator.cpp:36
QgsAttributesFormTreeViewIndicator::setIcon
void setIcon(const QIcon &icon)
Sets indicator icon that will be displayed in the Attributes Form tree view.
Definition
qgsattributesformtreeviewindicator.cpp:30
QgsAttributesFormTreeViewIndicator::icon
QIcon icon() const
Indicator icon that will be displayed in the Attributes Form tree view.
Definition
qgsattributesformtreeviewindicator.cpp:25
qgsattributesformtreeviewindicator.h
Generated on
for QGIS API Documentation by
1.15.0