#include <CQComboDelegate.h>
|
| CQIndexComboDelegate (const QStringList *pComboItems, QObject *parent=NULL) |
|
virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
|
virtual | ~CQIndexComboDelegate () |
|
| CQComboDelegate (const QStringList *pComboItems, QObject *parent=NULL, bool commitOnSelect=true) |
|
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
const QStringList * | getItems (int row) const |
|
bool | isCommitOnSelect () const |
|
void | setCommitOnSelect (bool commitOnSelect) |
|
virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
|
void | setItems (int row, const QStringList *pComboItems) |
|
virtual void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
virtual | ~CQComboDelegate () |
|
Definition at line 64 of file CQComboDelegate.h.
CQIndexComboDelegate::CQIndexComboDelegate |
( |
const QStringList * |
pComboItems, |
|
|
QObject * |
parent = NULL |
|
) |
| |
Definition at line 139 of file CQComboDelegate.cpp.
CQComboDelegate(const QStringList *pComboItems, QObject *parent=NULL, bool commitOnSelect=true)
CQIndexComboDelegate::~CQIndexComboDelegate |
( |
| ) |
|
|
virtual |
void CQIndexComboDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
Reimplemented from CQComboDelegate.
Definition at line 146 of file CQComboDelegate.cpp.
149 QComboBox *comboBox =
static_cast<QComboBox*
>(editor);
150 QVariant value(comboBox->currentIndex());
151 model->setData(index, value, Qt::EditRole);
The documentation for this class was generated from the following files: