|
| ComboBoxDelegate (DItemsList *const, const QMap< int, QString > &) |
|
void | startEditing (QTreeWidgetItem *, int) |
|
| ~ComboBoxDelegate () override |
|
|
void | paint (QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override |
|
QSize | sizeHint (const QStyleOptionViewItem &, const QModelIndex &) const override |
|
QWidget * | createEditor (QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const override |
|
void | setEditorData (QWidget *, const QModelIndex &) const override |
|
void | setModelData (QWidget *, QAbstractItemModel *, const QModelIndex &) const override |
|
◆ ComboBoxDelegate()
Digikam::ComboBoxDelegate::ComboBoxDelegate |
( |
DItemsList * const |
parent, |
|
|
const QMap< int, QString > & |
items |
|
) |
| |
|
explicit |
◆ ~ComboBoxDelegate()
Digikam::ComboBoxDelegate::~ComboBoxDelegate |
( |
| ) |
|
|
override |
◆ createEditor()
QWidget * Digikam::ComboBoxDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
|
|
) |
| const |
|
override |
◆ paint()
void Digikam::ComboBoxDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
Overloaded functions to provide the delegate functionality.
◆ setEditorData()
void Digikam::ComboBoxDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
◆ setModelData()
void Digikam::ComboBoxDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
◆ sizeHint()
QSize Digikam::ComboBoxDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
, |
|
|
const QModelIndex & |
|
|
) |
| const |
|
override |
◆ startEditing()
void Digikam::ComboBoxDelegate::startEditing |
( |
QTreeWidgetItem * |
item, |
|
|
int |
column |
|
) |
| |
Whenever an element needs to be edited, this method should be called. It's actually a hack to prevent the item text shining through whenever editing occurs.
The documentation for this class was generated from the following files: