A delegate for showing a color swatch in a list.
More...
#include <qgscolorschemelist.h>
Public Member Functions |
| QgsColorSwatchDelegate (QWidget *parent=0) |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
Detailed Description
A delegate for showing a color swatch in a list.
- See Also
- QgsColorSchemeList
- Note
- introduced in QGIS 2.5
Constructor & Destructor Documentation
QgsColorSwatchDelegate::QgsColorSwatchDelegate |
( |
QWidget * |
parent = 0 | ) |
|
Member Function Documentation
bool QgsColorSwatchDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
void QgsColorSwatchDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
QSize QgsColorSwatchDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
The documentation for this class was generated from the following files: