QGIS API Documentation
3.99.0-Master (21b3aa880ba)
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
#define SIP_NO_FILE
21
22
#include "qgis_gui.h"
23
24
#include <QIcon>
25
#include <QObject>
26
36
class
GUI_EXPORT
QgsAttributesFormTreeViewIndicator
:
public
QObject
37
{
38
Q_OBJECT
39
public
:
41
explicit
QgsAttributesFormTreeViewIndicator
( QObject *parent =
nullptr
);
42
44
QIcon
icon
()
const
;
46
void
setIcon
(
const
QIcon &
icon
);
47
49
QString
toolTip
()
const
;
51
void
setToolTip
(
const
QString &tip );
52
53
signals:
54
58
void
changed
();
59
60
private
:
61
QIcon mIcon;
62
QString mToolTip;
63
};
64
65
#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