#include <qgscolorschemelist.h>
|
| 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
- See also
- QgsColorSchemeList
- Since
- QGIS 2.5
Definition at line 36 of file qgscolorschemelist.h.
◆ QgsColorSwatchDelegate()
QgsColorSwatchDelegate::QgsColorSwatchDelegate |
( |
QWidget * |
parent = nullptr | ) |
|
◆ editorEvent()
bool QgsColorSwatchDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
override |
◆ paint()
void QgsColorSwatchDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
◆ sizeHint()
QSize QgsColorSwatchDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
The documentation for this class was generated from the following files: