The ComboBoxDelegate class.
More...
#include <comboboxdelegate.h>
The ComboBoxDelegate class.
- Author
- Antoine de Roquemaurel
Gui::Widgets::Delegates::ComboBoxDelegate::ComboBoxDelegate |
( |
QObject * |
parent = 0 | ) |
|
virtual QWidget* Gui::Widgets::Delegates::ComboBoxDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
pure virtual |
void Gui::Widgets::Delegates::ComboBoxDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
pure virtual |
void Gui::Widgets::Delegates::ComboBoxDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
ComboBoxDelegate::setEditorData Sets the data to be displayed and edited by the editor from the data model item specified by the model index
- Parameters
-
editor | Data edited |
index | Index of the model to edit |
void Gui::Widgets::Delegates::ComboBoxDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
ComboBoxDelegate::setModelData Gets data from the editor widget and stores it in the specified model at the item index
- Parameters
-
editor | Editor Widget |
model | Model to store data |
index | Item index |
void Gui::Widgets::Delegates::ComboBoxDelegate::updateEditorGeometry |
( |
QWidget * |
editor, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
ComboBoxDelegate::updateEditorGeometry Update the editor for the item specified by index according to the style option given.
- Parameters
-
editor | Editor widget to update |
option | Style option |
index | Item index |
The documentation for this class was generated from the following files:
- /home/travis/build/FACT-Team/FactDev/src/gui/widgets/delegates/comboboxdelegate.h
- /home/travis/build/FACT-Team/FactDev/src/gui/widgets/delegates/comboboxdelegate.cpp