FactDev  0.1
Gui::Widgets::Delegates::UnitComboDelegate Class Reference

The UnitComboDelegate class. More...

#include <unitcombodelegate.h>

Inheritance diagram for Gui::Widgets::Delegates::UnitComboDelegate:
Gui::Widgets::Delegates::ComboBoxDelegate

Public Member Functions

 UnitComboDelegate (QObject *parent=0)
 UnitComboDelegate::UnitComboDelegate. More...
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 UnitComboDelegate::createEditor Return a ComboBox specified by index item defined by the parent widget and style option which are used to control how the editor widgets appears. More...
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 UnitComboDelegate::paint Renders the delegate using the given painter and style option for the item specified by index More...
 
- Public Member Functions inherited from Gui::Widgets::Delegates::ComboBoxDelegate
 ComboBoxDelegate (QObject *parent=0)
 ComboBoxDelegate::ComboBoxDelegate Construct a ComboBoxDelegate. More...
 
void setEditorData (QWidget *editor, const QModelIndex &index) const
 ComboBoxDelegate::setEditorData Sets the data to be displayed and edited by the editor from the data model item specified by the model index More...
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 ComboBoxDelegate::setModelData Gets data from the editor widget and stores it in the specified model at the item index More...
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
 ComboBoxDelegate::updateEditorGeometry Update the editor for the item specified by index according to the style option given. More...
 

Detailed Description

The UnitComboDelegate class.

Constructor & Destructor Documentation

Gui::Widgets::Delegates::UnitComboDelegate::UnitComboDelegate ( QObject *  parent = 0)

Member Function Documentation

QWidget * Gui::Widgets::Delegates::UnitComboDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

UnitComboDelegate::createEditor Return a ComboBox specified by index item defined by the parent widget and style option which are used to control how the editor widgets appears.

Parameters
parentWidget parent
optionOption style
indexIndex for editing
Returns
ComboBox

Implements Gui::Widgets::Delegates::ComboBoxDelegate.

void Gui::Widgets::Delegates::UnitComboDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

UnitComboDelegate::paint Renders the delegate using the given painter and style option for the item specified by index

Parameters
parentWidget parent
optionOption style
indexIndex for editing

Implements Gui::Widgets::Delegates::ComboBoxDelegate.


The documentation for this class was generated from the following files: