16#ifndef QGSATTRIBUTESFORMTREEVIEWITEMDELEGATE_H
17#define QGSATTRIBUTESFORMTREEVIEWITEMDELEGATE_H
29#include <QStyledItemDelegate>
37class QgsAttributesFormTreeViewProxyStyle :
public QgsProxyStyle
48 QRect subElementRect( SubElement element,
const QStyleOption *option,
const QWidget *widget )
const override;
50 static const auto SE_AttributesFormTreeItemIndicator = SE_CustomBase + 1;
63class QgsAttributesFormTreeViewItemDelegate :
public QStyledItemDelegate
71 explicit QgsAttributesFormTreeViewItemDelegate( QgsAttributesFormBaseView *parent );
73 void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
75 bool helpEvent( QHelpEvent *event, QAbstractItemView *view,
const QStyleOptionViewItem &option,
const QModelIndex &index )
override;
78 QgsAttributesFormBaseView *mAttributesFormTreeView;
A QProxyStyle subclass which correctly sets the base style to match the QGIS application style,...