16#ifndef QGSLAYERTREEVIEWINDICATOR_H
17#define QGSLAYERTREEVIEWINDICATOR_H
44 QIcon
icon()
const {
return mIcon; }
53 QString
toolTip()
const {
return mToolTip; }
55 void setToolTip(
const QString &tip ) { mToolTip = tip; }
QgsLayerTreeViewIndicator(QObject *parent=nullptr)
Constructs an indicator, optionally transferring ownership to a parent QObject.
QString toolTip() const
Returns tool tip text that will be shown when user hovers mouse over the indicator.
QIcon icon() const
Indicator icon that will be displayed in the layer tree view.
void changed()
Emitted when the indicator changes state (e.g.
void clicked(const QModelIndex &index)
Emitted when user clicks on the indicator.
void setToolTip(const QString &tip)
Sets tool tip text.
void setIcon(const QIcon &icon)
Sets indicator icon that will be displayed in the layer tree view.