#include <StdMeshersGUI_CartesianParamCreator.h>
Public Member Functions | |
LineDelegate (QWidget *parent) | |
LineDelegate constructor. More... | |
~LineDelegate () | |
QWidget * | createEditor (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 | |
QTreeWidget * | mySpacingTreeWdg |
QListWidget * | myCoordList |
StdMeshersGUI::LineDelegate::LineDelegate | ( | QWidget * | parent | ) |
LineDelegate constructor.
StdMeshersGUI::LineDelegate::~LineDelegate | ( | ) |
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 |
Limit value range in the spin of a neighbor range.
References StdMeshersGUI::getFromItem(), mySpacingTreeWdg, SMESHGUI_SpinBox::RangeStepAndValidator(), and SMESHGUI_SpinBox::SetValue().
void StdMeshersGUI::LineDelegate::setModelData | ( | QWidget * | editor, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const |
|
private |
Referenced by createEditor(), and setModelData().
|
private |
Referenced by createEditor(), setEditorData(), and setModelData().