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