QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
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
17
18#include "moc_qgsattributesformtreeviewindicator.cpp"
19
21 : QObject { parent }
22{
23}
24
26{
27 return mIcon;
28}
29
31{
32 mIcon = icon;
33 emit changed();
34}
35
37{
38 return mToolTip;
39}
40
42{
43 mToolTip = tip;
44}
void changed()
Emitted when the indicator changes state (e.g.
QgsAttributesFormTreeViewIndicator(QObject *parent=nullptr)
Constructs an indicator, optionally transferring ownership to a parent QObject.
void setToolTip(const QString &tip)
Sets tool tip text for the indicator.
QString toolTip() const
Returns tool tip text that will be shown when user hovers mouse over the indicator.
void setIcon(const QIcon &icon)
Sets indicator icon that will be displayed in the Attributes Form tree view.
QIcon icon() const
Indicator icon that will be displayed in the Attributes Form tree view.