16 #ifndef QGSLAYERTREEVIEWINDICATOR_H 
   17 #define QGSLAYERTREEVIEWINDICATOR_H 
   43     QIcon 
icon()
 const { 
return mIcon; }
 
   45     void setIcon( 
const QIcon &icon ) { mIcon = icon; emit changed(); }
 
   48     QString 
toolTip()
 const { 
return mToolTip; }
 
   50     void setToolTip( 
const QString &tip ) { mToolTip = tip; }
 
Indicator that can be used in a layer tree view to display icons next to items of the layer tree.
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.