The ColorDelegate class is used by PaletteEditor.
More...
#include <paletteeditor.h>
|
| ColorDelegate (QObject *parent=nullptr) |
|
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
|
void | setEditorData (QWidget *ed, const QModelIndex &index) const override |
|
void | setModelData (QWidget *ed, QAbstractItemModel *model, const QModelIndex &index) const override |
|
void | updateEditorGeometry (QWidget *ed, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
|
void | paint (QPainter *painter, const QStyleOptionViewItem &opt, const QModelIndex &index) const override |
|
QSize | sizeHint (const QStyleOptionViewItem &opt, const QModelIndex &index) const override |
|
The ColorDelegate class is used by PaletteEditor.
Definition at line 162 of file paletteeditor.h.
◆ ColorDelegate()
QtUtilities::ColorDelegate::ColorDelegate |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ createEditor()
QWidget * QtUtilities::ColorDelegate::createEditor |
( |
QWidget * | parent, |
|
|
const QStyleOptionViewItem & | option, |
|
|
const QModelIndex & | index ) const |
|
override |
◆ paint()
void QtUtilities::ColorDelegate::paint |
( |
QPainter * | painter, |
|
|
const QStyleOptionViewItem & | opt, |
|
|
const QModelIndex & | index ) const |
|
override |
◆ setEditorData()
void QtUtilities::ColorDelegate::setEditorData |
( |
QWidget * | ed, |
|
|
const QModelIndex & | index ) const |
|
override |
◆ setModelData()
void QtUtilities::ColorDelegate::setModelData |
( |
QWidget * | ed, |
|
|
QAbstractItemModel * | model, |
|
|
const QModelIndex & | index ) const |
|
override |
◆ sizeHint()
QSize QtUtilities::ColorDelegate::sizeHint |
( |
const QStyleOptionViewItem & | opt, |
|
|
const QModelIndex & | index ) const |
|
override |
◆ updateEditorGeometry()
void QtUtilities::ColorDelegate::updateEditorGeometry |
( |
QWidget * | ed, |
|
|
const QStyleOptionViewItem & | option, |
|
|
const QModelIndex & | index ) const |
|
override |
The documentation for this class was generated from the following files: