16 #ifndef QGSLAYERTREEVIEWITEMDELEGATE_H
17 #define QGSLAYERTREEVIEWITEMDELEGATE_H
37 #include <QStyledItemDelegate>
49 QRect subElementRect( SubElement element,
const QStyleOption *option,
const QWidget *widget )
const override;
51 static const auto SE_LayerTreeItemIndicator = SE_CustomBase + 1;
61 class QgsLayerTreeViewItemDelegate :
public QStyledItemDelegate
67 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
69 bool helpEvent( QHelpEvent *event, QAbstractItemView *view,
const QStyleOptionViewItem &option,
const QModelIndex &index )
override;
72 void onClicked(
const QModelIndex &index );
The QgsLayerTreeView class extends QTreeView and provides some additional functionality when working ...
A QProxyStyle subclass which correctly sets the base style to match the QGIS application style,...