BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Creates editors for SessionItems.
Functions | |
QWidget * | CreateEditor (const SessionItem &item, QWidget *parent=nullptr) |
Creates an editor suitable for editing of item.value() More... | |
bool | hasStringRepresentation (const QModelIndex &index) |
Returns true if the index data has known (custom) conversion to string. More... | |
QString | toString (const QModelIndex &index) |
Provides string representation of index data. More... | |
QWidget * GUI::View::PropertyEditorFactory::CreateEditor | ( | const SessionItem & | item, |
QWidget * | parent = nullptr |
||
) |
Creates an editor suitable for editing of item.value()
Definition at line 69 of file PropertyEditorFactory.cpp.
References SessionItem::decimals(), SessionItem::limits(), SessionItem::roleProperty(), ScientificSpinBoxEditor::setLimits(), and SessionItem::value().
Referenced by FitParameterDelegate::createEditorFromIndex().
bool GUI::View::PropertyEditorFactory::hasStringRepresentation | ( | const QModelIndex & | index | ) |
Returns true if the index data has known (custom) conversion to string.
Definition at line 43 of file PropertyEditorFactory.cpp.
Referenced by FitParameterDelegate::paint().
QString GUI::View::PropertyEditorFactory::toString | ( | const QModelIndex & | index | ) |
Provides string representation of index data.
Definition at line 54 of file PropertyEditorFactory.cpp.
References ScientificSpinBox::toString().
Referenced by JobModel::addJob(), JobItem::beginTime(), AboutDialog::createTextLayout(), JobItem::endTime(), JobItem::getStatus(), InstrumentCollection::insertCopy(), FitParameterDelegate::paint(), GUI::Model::JobFunctions::setupJobItemInstrument(), and GUI::Session::XML::writeUid().