QGIS API Documentation
3.99.0-Master (c22de0620c0)
Loading...
Searching...
No Matches
src
gui
vector
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
37
class
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
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
Generated on
for QGIS API Documentation by
1.15.0