16 #ifndef QGSLAYERTREEVIEWITEMDELEGATE_H 17 #define QGSLAYERTREEVIEWITEMDELEGATE_H 37 #include <QStyledItemDelegate> 47 QRect subElementRect( SubElement element,
const QStyleOption *option,
const QWidget *widget )
const override;
49 static const unsigned long SE_LayerTreeItemIndicator = SE_CustomBase + 1;
59 class QgsLayerTreeViewItemDelegate :
public QStyledItemDelegate
65 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
67 bool helpEvent( QHelpEvent *event, QAbstractItemView *view,
const QStyleOptionViewItem &option,
const QModelIndex &index )
override;
70 void onClicked(
const QModelIndex &index );
78 #endif // QGSLAYERTREEVIEWITEMDELEGATE_H 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...