Item delegate for tree mesh info widget. More...

Public Member Functions | |
| ItemDelegate (QObject *) | |
| Constructor. | |
| QWidget * | createEditor (QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const |
| Create item editor widget. | |
Item delegate for tree mesh info widget.
Definition at line 879 of file SMESHGUI_MeshInfo.cxx.
| SMESHGUI_TreeElemInfo.ItemDelegate::ItemDelegate | ( | QObject * | parent | ) |
| QWidget * SMESHGUI_TreeElemInfo.ItemDelegate::createEditor | ( | QWidget * | parent, |
| const QStyleOptionViewItem & | option, | ||
| const QModelIndex & | index | ||
| ) | const |
Create item editor widget.
Definition at line 898 of file SMESHGUI_MeshInfo.cxx.
{
QWidget* w = index.column() == 0 ? 0: QItemDelegate::createEditor( parent, option, index );
if ( qobject_cast<QLineEdit*>( w ) ) qobject_cast<QLineEdit*>( w )->setReadOnly( true );
return w;
}