Optika  Development
 All Classes Files Functions Variables Typedefs Pages
List of all members
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>

Inheritance diagram for Optika::Delegate:
Inheritance graph
[legend]
Collaboration diagram for Optika::Delegate:
Collaboration graph
[legend]

Public Member Functions

Constructors
 Delegate (QObject *parent=0)
 Constructs a Delegate. More...
 
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. More...
 
static const QString & getBoolEditorFalse ()
 Gets the value the delegate uses to represent "false" when constructing comboboxes for boolean parameters. More...
 

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 ( )
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.

Referenced by createEditor().

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.

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: