The delegate used for the Optika package. For non-documented functions please refer to the Qt API. More...
#include <Optika_delegate.hpp>
Public Member Functions | |
Constructors | |
| Delegate (QObject *parent=0) | |
| Constructs a Delegate. | |
Overridden from QItemDelegate | |
| QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | |
| virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
| | |
| void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
| | |
| virtual void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | |
Static Public Member Functions | |
Constant obtaining functions. | |
| static const QString & | getBoolEditorTrue () |
| Gets the value the delegate uses to represent "true" when constructing comboboxes for boolean parameters. | |
| static const QString & | getBoolEditorFalse () |
| Gets the value the delegate uses to represent "false" when constructing comboboxes for boolean parameters. | |
The delegate used for the Optika package. For non-documented functions please refer to the Qt API.
| Optika::Delegate::Delegate | ( | QObject * | parent = 0 | ) |
| QWidget * Optika::Delegate::createEditor | ( | QWidget * | parent, |
| const QStyleOptionViewItem & | option, | ||
| const QModelIndex & | index | ||
| ) | const |
*
References getBoolEditorFalse(), and getBoolEditorTrue().
| static const QString& Optika::Delegate::getBoolEditorFalse | ( | ) | [inline, static] |
Gets the value the delegate uses to represent "false" when constructing comboboxes for boolean parameters.
Referenced by createEditor().
| static const QString& Optika::Delegate::getBoolEditorTrue | ( | ) | [inline, static] |
Gets the value the delegate uses to represent "true" when constructing comboboxes for boolean parameters.
Referenced by createEditor(), and setModelData().
| void Optika::Delegate::setEditorData | ( | QWidget * | editor, |
| const QModelIndex & | index | ||
| ) | const [virtual] |
*
| void Optika::Delegate::setModelData | ( | QWidget * | editor, |
| QAbstractItemModel * | model, | ||
| const QModelIndex & | index | ||
| ) | const |
*
References getBoolEditorTrue(), and Optika::TreeModel::setData().
| void Optika::Delegate::updateEditorGeometry | ( | QWidget * | editor, |
| const QStyleOptionViewItem & | option, | ||
| const QModelIndex & | index | ||
| ) | const [virtual] |
*
1.7.6.1