Custom item delegate (uses double spin box to edit table item) More...
Public Member Functions | |
SpinBoxDelegate (StdMeshersGUI_DistrTableFrame::Table *) | |
~SpinBoxDelegate () | |
QWidget * | createEditor (QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const |
void | setEditorData (QWidget *, const QModelIndex &) const |
void | setModelData (QWidget *, QAbstractItemModel *, const QModelIndex &) const |
void | updateEditorGeometry (QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const |
Private Attributes | |
StdMeshersGUI_DistrTableFrame::Table * | myTable |
Custom item delegate (uses double spin box to edit table item)
StdMeshersGUI_DistrTableFrame::SpinBoxDelegate::SpinBoxDelegate | ( | StdMeshersGUI_DistrTableFrame::Table * | parent | ) |
StdMeshersGUI_DistrTableFrame::SpinBoxDelegate::~SpinBoxDelegate | ( | ) |
QWidget * StdMeshersGUI_DistrTableFrame::SpinBoxDelegate::createEditor | ( | QWidget * | parent, |
const QStyleOptionViewItem & | , | ||
const QModelIndex & | index | ||
) | const |
References StdMeshersGUI_DistrTableFrame::ArgColumn, StdMeshersGUI_DistrTableFrame::Table::argMaximum(), StdMeshersGUI_DistrTableFrame::Table::argMinimum(), StdMeshersGUI_DistrTableFrame::Table::argStep(), StdMeshersGUI_DistrTableFrame::Table::funcMaximum(), StdMeshersGUI_DistrTableFrame::Table::funcMinimum(), StdMeshersGUI_DistrTableFrame::Table::funcStep(), StdMeshersGUI_DistrTableFrame::myTable, SMESHGUI_SpinBox::RangeStepAndValidator(), and StdMeshersGUI_DistrTableFrame::Table::setEditor().
void StdMeshersGUI_DistrTableFrame::SpinBoxDelegate::setEditorData | ( | QWidget * | editor, |
const QModelIndex & | index | ||
) | const |
void StdMeshersGUI_DistrTableFrame::SpinBoxDelegate::setModelData | ( | QWidget * | editor, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const |
void StdMeshersGUI_DistrTableFrame::SpinBoxDelegate::updateEditorGeometry | ( | QWidget * | editor, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | |||
) | const |
|
private |