BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Base class for all custom variants editors. More...
Public Slots | |
void | setData (const QVariant &data) |
Sets the data from the model to editor. More... | |
Signals | |
void | dataChanged (const QVariant &data) |
Signal emit then user changed the data through the editor. More... | |
Public Member Functions | |
CustomEditor (QWidget *parent=nullptr) | |
QVariant | editorData () |
Protected Member Functions | |
virtual void | initEditor () |
Inits editor widgets from m_data. More... | |
void | setDataIntern (const QVariant &data) |
Saves the data from the editor and informs external delegates. More... | |
Protected Attributes | |
QVariant | m_data |
Base class for all custom variants editors.
Definition at line 28 of file CustomEditors.h.
|
inlineexplicit |
Definition at line 31 of file CustomEditors.h.
|
signal |
Signal emit then user changed the data through the editor.
Referenced by PropertyWidgetItem::connectEditor(), SessionModelDelegate::createEditor(), and setDataIntern().
|
inline |
|
protectedvirtual |
Inits editor widgets from m_data.
Reimplemented in MultiComboPropertyEditor, BoolEditor, IntEditor, ScientificSpinBoxEditor, DoubleEditor, ScientificDoublePropertyEditor, ComboPropertyEditor, and ExternalPropertyEditor.
Definition at line 56 of file CustomEditors.cpp.
Referenced by setData().
|
slot |
Sets the data from the model to editor.
Definition at line 48 of file CustomEditors.cpp.
References initEditor(), and m_data.
|
protected |
Saves the data from the editor and informs external delegates.
Definition at line 60 of file CustomEditors.cpp.
References dataChanged(), and m_data.
Referenced by ExternalPropertyEditor::buttonClicked(), BoolEditor::onCheckBoxChange(), ScientificDoublePropertyEditor::onEditingFinished(), DoubleEditor::onEditingFinished(), ScientificSpinBoxEditor::onEditingFinished(), IntEditor::onEditingFinished(), ComboPropertyEditor::onIndexChanged(), and MultiComboPropertyEditor::onModelDataChanged().
|
protected |
Definition at line 45 of file CustomEditors.h.
Referenced by ExternalPropertyEditor::buttonClicked(), editorData(), ExternalPropertyEditor::initEditor(), ScientificDoublePropertyEditor::initEditor(), DoubleEditor::initEditor(), ScientificSpinBoxEditor::initEditor(), IntEditor::initEditor(), BoolEditor::initEditor(), MultiComboPropertyEditor::initEditor(), ComboPropertyEditor::internIndex(), ComboPropertyEditor::internLabels(), BoolEditor::onCheckBoxChange(), ScientificDoublePropertyEditor::onEditingFinished(), DoubleEditor::onEditingFinished(), ScientificSpinBoxEditor::onEditingFinished(), IntEditor::onEditingFinished(), ComboPropertyEditor::onIndexChanged(), MultiComboPropertyEditor::onModelDataChanged(), setData(), setDataIntern(), and MultiComboPropertyEditor::updateBoxLabel().