| QGIS API Documentation
    3.16.0-Hannover (43b64b13f3)
    | 
 
 
 
Go to the documentation of this file.
   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; }
 
   67 #endif // QGSLAYERTREEVIEWINDICATOR_H 
  
QIcon icon() const
Indicator icon that will be displayed in the layer tree view.
void clicked(const QModelIndex &index)
Emitted when user clicks on the indicator.
QString toolTip() const
Returns tool tip text that will be shown when user hovers mouse over the indicator.
void setIcon(const QIcon &icon)
Sets indicator icon that will be displayed in the layer tree view.
Indicator that can be used in a layer tree view to display icons next to items of the layer tree.
void setToolTip(const QString &tip)
Sets tool tip text.
void changed()
Emitted when the indicator changes state (e.g.