SHAPER  9.13.0
ParametersPlugin_ItemDelegate Class Reference
Inheritance diagram for ParametersPlugin_ItemDelegate:
Inheritance graph

Public Member Functions

 ParametersPlugin_ItemDelegate (QObject *thaParent)
 Constructor. More...
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Redefinition of virtual method. More...
 
virtual QWidgetcreateEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Redefinition of virtual method. More...
 
bool isEditable (const QModelIndex &theIndex) const
 Returns True if the given index is editable item. More...
 
QModelIndex editIndex () const
 Returns currently editing index. More...
 

Detailed Description

ItemDelegate object in order to redefine items behavior

Constructor & Destructor Documentation

◆ ParametersPlugin_ItemDelegate()

ParametersPlugin_ItemDelegate::ParametersPlugin_ItemDelegate ( QObject thaParent)
inline

Constructor.

Parameters
thaParenta parent

Member Function Documentation

◆ paint()

void ParametersPlugin_ItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Redefinition of virtual method.

Parameters
paintera painter object
optionthe item options
indexthe current index

◆ createEditor()

QWidget * ParametersPlugin_ItemDelegate::createEditor ( QWidget parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Redefinition of virtual method.

Parameters
parenta parent widget
optionthe item options
indexthe current index

◆ isEditable()

bool ParametersPlugin_ItemDelegate::isEditable ( const QModelIndex &  theIndex) const

Returns True if the given index is editable item.

Parameters
theIndexan item index

◆ editIndex()

QModelIndex ParametersPlugin_ItemDelegate::editIndex ( ) const
inline

Returns currently editing index.