QGIS API Documentation  2.99.0-Master (cd0ba91)
Public Member Functions | List of all members
QgsCheckBoxDelegate Class Reference

QStyledItemDelegate subclass for QgsCheckableComboBox. More...

#include <qgscheckablecombobox.h>

Inheritance diagram for QgsCheckBoxDelegate:
Inheritance graph
[legend]

Public Member Functions

 QgsCheckBoxDelegate (QObject *parent=nullptr)
 Constructor for QgsCheckBoxDelegate. More...
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Renders the delegate using the given painter and style option for the item specified by index. More...
 

Detailed Description

QStyledItemDelegate subclass for QgsCheckableComboBox.

Needed for correct drawing of the checkable items on Mac and GTK.

Since
QGIS 3.0
Note
not available in Python bindings

Definition at line 95 of file qgscheckablecombobox.h.

Constructor & Destructor Documentation

◆ QgsCheckBoxDelegate()

QgsCheckBoxDelegate::QgsCheckBoxDelegate ( QObject *  parent = nullptr)

Constructor for QgsCheckBoxDelegate.

Parameters
parentparent object

Definition at line 63 of file qgscheckablecombobox.cpp.

Member Function Documentation

◆ paint()

void QgsCheckBoxDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Renders the delegate using the given painter and style option for the item specified by index.

Parameters
painterpainter to use
optionstyle option
indexitem index

Definition at line 68 of file qgscheckablecombobox.cpp.


The documentation for this class was generated from the following files: