Optika Development
Optika::Delegate Class Reference

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

#include <Optika_delegate.hpp>

List of all members.

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.

Detailed Description

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


Constructor & Destructor Documentation

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

Constructs a Delegate.

Parameters:
parentThe parent object of the Delegate.

Member Function Documentation

QWidget * Optika::Delegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
static const QString& Optika::Delegate::getBoolEditorFalse ( ) [inline, static]

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.

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.

Returns:
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
void Optika::Delegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const [virtual]

*


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