Version: 8.3.0
StdMeshersGUI::LineDelegate Class Reference

#include <StdMeshersGUI_CartesianParamCreator.h>

Inheritance diagram for StdMeshersGUI::LineDelegate:

Public Member Functions

 LineDelegate (QWidget *parent)
 LineDelegate constructor. More...
 
 ~LineDelegate ()
 
QWidgetcreateEditor (QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const
 Creates an editor depending on a current item. More...
 
void setEditorData (QWidget *editor, const QModelIndex &index) const
 Limit value range in the spin of a neighbor range. More...
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 

Private Attributes

QTreeWidgetmySpacingTreeWdg
 
QListWidget * myCoordList
 

Constructor & Destructor Documentation

StdMeshersGUI::LineDelegate::LineDelegate ( QWidget parent)

LineDelegate constructor.

StdMeshersGUI::LineDelegate::~LineDelegate ( )

Member Function Documentation

QWidget * StdMeshersGUI::LineDelegate::createEditor ( QWidget parent,
const QStyleOptionViewItem &  opt,
const QModelIndex &  index 
) const

Creates an editor depending on a current item.

References StdMeshersGUI::coordFromItem(), myCoordList, mySpacingTreeWdg, and SMESHGUI_SpinBox::RangeStepAndValidator().

void StdMeshersGUI::LineDelegate::setEditorData ( QWidget editor,
const QModelIndex &  index 
) const
void StdMeshersGUI::LineDelegate::setModelData ( QWidget editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

Field Documentation

QListWidget* StdMeshersGUI::LineDelegate::myCoordList
private

Referenced by createEditor(), and setModelData().

QTreeWidget* StdMeshersGUI::LineDelegate::mySpacingTreeWdg
private