Qt Utilities
5.10.0
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
The ColorDelegate class is used by PaletteEditor. More...
#include <paletteeditor.h>
Public Member Functions | |
ColorDelegate (QObject *parent=nullptr) | |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
void | setEditorData (QWidget *ed, const QModelIndex &index) const |
void | setModelData (QWidget *ed, QAbstractItemModel *model, const QModelIndex &index) const |
void | updateEditorGeometry (QWidget *ed, const QStyleOptionViewItem &option, const QModelIndex &index) const |
void | paint (QPainter *painter, const QStyleOptionViewItem &opt, const QModelIndex &index) const |
QSize | sizeHint (const QStyleOptionViewItem &opt, const QModelIndex &index) const |
The ColorDelegate class is used by PaletteEditor.
Definition at line 167 of file paletteeditor.h.
|
explicit |
Definition at line 455 of file paletteeditor.cpp.
QWidget * Dialogs::ColorDelegate::createEditor | ( | QWidget * | parent, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Definition at line 460 of file paletteeditor.cpp.
void Dialogs::ColorDelegate::paint | ( | QPainter * | painter, |
const QStyleOptionViewItem & | opt, | ||
const QModelIndex & | index | ||
) | const |
Definition at line 517 of file paletteeditor.cpp.
void Dialogs::ColorDelegate::setEditorData | ( | QWidget * | ed, |
const QModelIndex & | index | ||
) | const |
Definition at line 481 of file paletteeditor.cpp.
void Dialogs::ColorDelegate::setModelData | ( | QWidget * | ed, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const |
Definition at line 496 of file paletteeditor.cpp.
QSize Dialogs::ColorDelegate::sizeHint | ( | const QStyleOptionViewItem & | opt, |
const QModelIndex & | index | ||
) | const |
Definition at line 551 of file paletteeditor.cpp.
void Dialogs::ColorDelegate::updateEditorGeometry | ( | QWidget * | ed, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Definition at line 511 of file paletteeditor.cpp.