The delegate used for the Optika package. For non-documented functions please refer to the Qt API.
More...
#include <Optika_delegate.hpp>
Inherits 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 const QString & | getBoolEditorTrue () |
| Gets the value the delegate uses to represent "true" when constructing comboboxes for boolean parameters. More...
|
|
static const QString & | getBoolEditorFalse () |
| Gets the value the delegate uses to represent "false" when constructing comboboxes for boolean parameters. More...
|
|
|
QWidget * | getArrayEditor (const QModelIndex &index, QString type, QWidget *parent, bool isTwoD=false) const |
| Creates an ArrayWidget to edit the parameter at the given QModelIndex. More...
|
|
void | setArrayWidgetData (QWidget *editor, QString type, const QModelIndex &index, bool isTwoD=false) const |
| Sets the data in an array widget to the current values found at index. More...
|
|
QVariant | extractValueFromArray (QWidget *editor, QString type, bool isTwoD=false) const |
| Gets an array from an ArrayWidget and puts it into a QVariant. More...
|
|
The delegate used for the Optika package. For non-documented functions please refer to the Qt API.
Definition at line 58 of file Optika_delegate.hpp.
Optika::Delegate::Delegate |
( |
QObject * |
parent = 0 | ) |
|
QWidget * Optika::Delegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
void Optika::Delegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
void Optika::Delegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
void Optika::Delegate::updateEditorGeometry |
( |
QWidget * |
editor, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
static const QString& Optika::Delegate::getBoolEditorTrue |
( |
| ) |
|
|
inlinestatic |
Gets the value the delegate uses to represent "true" when constructing comboboxes for boolean parameters.
- Returns
- The value the delegate uses to represent "true" when constructing comboboxes for boolean parameters.
Definition at line 99 of file Optika_delegate.hpp.
static const QString& Optika::Delegate::getBoolEditorFalse |
( |
| ) |
|
|
inlinestatic |
Gets the value the delegate uses to represent "false" when constructing comboboxes for boolean parameters.
- Returns
- The value the delegate uses to represent "false" when constructing comboboxes for boolean parameters.
Definition at line 113 of file Optika_delegate.hpp.
QWidget * Optika::Delegate::getArrayEditor |
( |
const QModelIndex & |
index, |
|
|
QString |
type, |
|
|
QWidget * |
parent, |
|
|
bool |
isTwoD = false |
|
) |
| const |
|
private |
Creates an ArrayWidget to edit the parameter at the given QModelIndex.
- Parameters
-
index | Index of the parameter to edit. |
type | The template type of the array. |
parent | The parent widget. |
- Returns
- An array widget with which to edit the parameter.
Definition at line 248 of file Optika_delegate.cpp.
void Optika::Delegate::setArrayWidgetData |
( |
QWidget * |
editor, |
|
|
QString |
type, |
|
|
const QModelIndex & |
index, |
|
|
bool |
isTwoD = false |
|
) |
| const |
|
private |
Sets the data in an array widget to the current values found at index.
- Parameters
-
editor | ArrayWidget whose values are to be set. |
type | The template type of the array. |
index | The index of the parameter whose values are going to be put in the ArrayWidget. |
Definition at line 299 of file Optika_delegate.cpp.
QVariant Optika::Delegate::extractValueFromArray |
( |
QWidget * |
editor, |
|
|
QString |
type, |
|
|
bool |
isTwoD = false |
|
) |
| const |
|
private |
Gets an array from an ArrayWidget and puts it into a QVariant.
- Parameters
-
editor | The ArrayWidget which has the array we want to put into a QVariant. |
type | the template type of the array. |
- Returns
- A Qvariant containing an array that is equal to the array in the given ArrayWidget.
Definition at line 333 of file Optika_delegate.cpp.
The documentation for this class was generated from the following files: