QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
QStyledItemDelegate subclass for QgsCheckableComboBox. More...
#include <qgscheckablecombobox.h>
Public Member Functions | |
QgsCheckBoxDelegate (QObject *parent=nullptr) | |
Constructor for QgsCheckBoxDelegate. | |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
Renders the delegate using the given painter and style option for the item specified by index. | |
QStyledItemDelegate subclass for QgsCheckableComboBox.
Needed for correct drawing of the checkable items on Mac and GTK.
Definition at line 92 of file qgscheckablecombobox.h.
QgsCheckBoxDelegate::QgsCheckBoxDelegate | ( | QObject * | parent = nullptr | ) |
Constructor for QgsCheckBoxDelegate.
parent | parent object |
Definition at line 65 of file qgscheckablecombobox.cpp.
|
override |
Renders the delegate using the given painter and style option for the item specified by index.
painter | painter to use |
option | style option |
index | item index |
Definition at line 70 of file qgscheckablecombobox.cpp.