SHAPER  9.15.0
XGUI_ConstraintsItemDelegate Class Reference
Inheritance diagram for XGUI_ConstraintsItemDelegate:
Inheritance graph

Public Member Functions

 XGUI_ConstraintsItemDelegate (QObject *theParent)
 Constructor. 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...
 
bool GetIsActive (const QModelIndex &index) const
 
void SetIsActive (QModelIndex &theIndex, bool theIsActive)
 
QModelIndex editIndex () const
 Returns currently editing index. More...
 

Protected Member Functions

virtual void initStyleOption (QStyleOptionViewItem *option, const QModelIndex &index) const
 Redefinition of virtual method. More...
 

Detailed Description

ItemDelegate object in order to redefine items behavior

Constructor & Destructor Documentation

◆ XGUI_ConstraintsItemDelegate()

XGUI_ConstraintsItemDelegate::XGUI_ConstraintsItemDelegate ( QObject theParent)
inline

Constructor.

Parameters
theParenta parent

Member Function Documentation

◆ createEditor()

QWidget * XGUI_ConstraintsItemDelegate::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 XGUI_ConstraintsItemDelegate::isEditable ( const QModelIndex &  theIndex) const

Returns True if the given index is editable item.

Parameters
theIndexan item index

◆ editIndex()

QModelIndex XGUI_ConstraintsItemDelegate::editIndex ( ) const
inline

Returns currently editing index.

◆ initStyleOption()

void XGUI_ConstraintsItemDelegate::initStyleOption ( QStyleOptionViewItem *  option,
const QModelIndex &  index 
) const
protectedvirtual

Redefinition of virtual method.

Parameters
optionthe item options
indexthe current index