◆ KisColorPatchesTableDelegate()
| KisColorPatchesTableDelegate::KisColorPatchesTableDelegate |
( |
QObject * | parent | ) |
|
|
inline |
◆ paint()
| void KisColorPatchesTableDelegate::paint |
( |
QPainter * | painter, |
|
|
const QStyleOptionViewItem & | option, |
|
|
const QModelIndex & | index ) const |
|
override |
Definition at line 30 of file KisColorPatchesTableView.cpp.
33{
34 const QColor color = index.data(Qt::UserRole).value<QColor>();
35
36 if (color.isValid()) {
37
38 painter->fillRect(option.rect, color);
39 }
40}
The documentation for this class was generated from the following file: