Optika GUI Toolik Version of the Day
Public Member Functions | Private Member Functions
Optika::Delegate Class Reference

#include <Optika_delegate.hpp>

List of all members.

Public Member Functions

 Delegate (QObject *parent=0)
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

Private Member Functions

void arrayHandler (const QModelIndex &index, QString type, QWidget *parent) const

Detailed Description

The delegate used for the Optika package. For non-documented functions please refer to the Qt API.

Definition at line 41 of file Optika_delegate.hpp.


Constructor & Destructor Documentation

Optika::Delegate::Delegate ( QObject *  parent = 0)

Constructs a Delegate.

Parameters:
parentThe parent object of the Delegate.

Definition at line 40 of file Optika_delegate.cpp.


Member Function Documentation

QWidget * Optika::Delegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 42 of file Optika_delegate.cpp.

void Optika::Delegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const [virtual]

Definition at line 135 of file Optika_delegate.cpp.

void Optika::Delegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

Definition at line 167 of file Optika_delegate.cpp.

void Optika::Delegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const [virtual]

Definition at line 207 of file Optika_delegate.cpp.

void Optika::Delegate::arrayHandler ( const QModelIndex &  index,
QString  type,
QWidget *  parent 
) const [private]

Handles any array editing that needs to be done.

Parameters:
indexThe index of the item being edited.
typeThe type of array being edited.
parentThe parent widget.

Definition at line 211 of file Optika_delegate.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends