QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
A delegate for showing a color swatch in a list. More...
#include <qgscolorschemelist.h>
Public Member Functions | |
QgsColorSwatchDelegate (QWidget *parent=nullptr) | |
bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
A delegate for showing a color swatch in a list.
Definition at line 35 of file qgscolorschemelist.h.
QgsColorSwatchDelegate::QgsColorSwatchDelegate | ( | QWidget * | parent = nullptr | ) |
Definition at line 682 of file qgscolorschemelist.cpp.
|
override |
Definition at line 764 of file qgscolorschemelist.cpp.
|
override |
Definition at line 688 of file qgscolorschemelist.cpp.
|
override |
Definition at line 756 of file qgscolorschemelist.cpp.