16 #ifndef QGSLAYERTREEVIEWINDICATOR_H 17 #define QGSLAYERTREEVIEWINDICATOR_H 43 QIcon
icon()
const {
return mIcon; }
45 void setIcon(
const QIcon &icon ) { mIcon = icon; }
48 QString
toolTip()
const {
return mToolTip; }
50 void setToolTip(
const QString &tip ) { mToolTip = tip; }
54 void clicked(
const QModelIndex &index );
61 #endif // QGSLAYERTREEVIEWINDICATOR_H void setIcon(const QIcon &icon)
Sets indicator icon that will be displayed in the layer tree view.
void setToolTip(const QString &tip)
Sets tool tip text.
QString toolTip() const
Returns tool tip text that will be shown when user hovers mouse over the indicator.
Indicator that can be used in a layer tree view to display icons next to items of the layer tree...
QIcon icon() const
Indicator icon that will be displayed in the layer tree view.