QGIS API Documentation 3.99.0-Master (c22de0620c0)
Loading...
Searching...
No Matches
qgsattributesformtreeviewindicator.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsattributesformtreeviewindicator.h
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#ifndef QGSATTRIBUTESFORMTREEVIEWINDICATOR_H
17#define QGSATTRIBUTESFORMTREEVIEWINDICATOR_H
18
19// We don't want to expose this in the public API
20
21#include "qgis_gui.h"
22
23#include <QIcon>
24#include <QObject>
25
26#define SIP_NO_FILE
27
37class GUI_EXPORT QgsAttributesFormTreeViewIndicator : public QObject
38{
39 Q_OBJECT
40 public:
42 explicit QgsAttributesFormTreeViewIndicator( QObject *parent = nullptr );
43
45 QIcon icon() const;
47 void setIcon( const QIcon &icon );
48
50 QString toolTip() const;
52 void setToolTip( const QString &tip );
53
54 signals:
55
59 void changed();
60
61 private:
62 QIcon mIcon;
63 QString mToolTip;
64};
65
66#endif // QGSATTRIBUTESFORMTREEVIEWINDICATOR_H
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.