A combobox item delegate.
More...
#include <cComboBoxDelegate.h>
|
| | cComboBoxDelegate (QObject *parent=(QObject *) 0) |
| | The constructor. More...
|
| |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | Reimplementation of paint. More...
|
| |
| void | setEditorData (QWidget *editor, const QModelIndex &index) const |
| | Reimplementation of setEditorData. More...
|
| |
| void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
| | Reimplementation of setModelData. More...
|
| |
| QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | Reimplementation of createEditor. More...
|
| |
A combobox item delegate.
◆ cComboBoxDelegate()
| cComboBoxDelegate::cComboBoxDelegate |
( |
QObject * |
parent = (QObject *)0 | ) |
|
The constructor.
- Parameters
-
| parent | pointer to a parent widget |
◆ createEditor()
| QWidget * cComboBoxDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Reimplementation of createEditor.
- Parameters
-
| parent | QWidget |
| option | QStyleOptionViewItem |
| index | QModelIndex |
◆ paint()
| void cComboBoxDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Reimplementation of paint.
- Parameters
-
| painter | QPainter |
| option | QStyleOptionViewItem |
| index | QModelIndex |
◆ setEditorData()
| void cComboBoxDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Reimplementation of setEditorData.
- Parameters
-
| editor | QWidget |
| index | QModelIndex |
◆ setModelData()
| void cComboBoxDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Reimplementation of setModelData.
- Parameters
-
| editor | QWidget |
| model | QAbstractItemModel |
| index | QModelIndex |
The documentation for this class was generated from the following files: