QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
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 95 of file qgscheckablecombobox.h.
QgsCheckBoxDelegate::QgsCheckBoxDelegate | ( | QObject * | parent = nullptr | ) |
Constructor for QgsCheckBoxDelegate.
parent | parent object |
Definition at line 64 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 69 of file qgscheckablecombobox.cpp.