BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Base class for all custom variants editors.
Definition at line 29 of file CustomEditors.h.
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 |
|
inlineexplicit |
Definition at line 32 of file CustomEditors.h.
|
signal |
Signal emit then user changed the data through the editor.
Referenced by FitParameterDelegate::createEditor(), and setDataIntern().
|
inline |
|
protectedvirtual |
Inits editor widgets from m_data.
Reimplemented in ScientificSpinBoxEditor, and ComboPropertyEditor.
Definition at line 48 of file CustomEditors.cpp.
Referenced by setData().
|
slot |
Sets the data from the model to editor.
Definition at line 40 of file CustomEditors.cpp.
References initEditor(), and m_data.
|
protected |
Saves the data from the editor and informs external delegates.
Definition at line 52 of file CustomEditors.cpp.
References dataChanged(), and m_data.
Referenced by ScientificSpinBoxEditor::onEditingFinished(), and ComboPropertyEditor::onIndexChanged().
|
protected |
Definition at line 49 of file CustomEditors.h.
Referenced by editorData(), ScientificSpinBoxEditor::initEditor(), ComboPropertyEditor::internIndex(), ComboPropertyEditor::internLabels(), ScientificSpinBoxEditor::onEditingFinished(), ComboPropertyEditor::onIndexChanged(), setData(), and setDataIntern().