BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Editor for Double variant using ScientificSpinBox.
Definition at line 77 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 | |
ScientificSpinBoxEditor (QWidget *parent=nullptr) | |
QVariant | editorData () |
void | setDecimals (int decimals) |
void | setLimits (const RealLimits &limits) |
void | setSingleStep (double step) |
Protected Member Functions | |
void | initEditor () override |
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 |
Private Slots | |
void | onEditingFinished () |
Private Attributes | |
class ScientificSpinBox * | m_doubleEditor |
ScientificSpinBoxEditor::ScientificSpinBoxEditor | ( | QWidget * | parent = nullptr | ) |
Definition at line 142 of file CustomEditors.cpp.
References m_doubleEditor, onEditingFinished(), and ScientificSpinBox::valueChanged().
|
signalinherited |
Signal emit then user changed the data through the editor.
Referenced by FitParameterDelegate::createEditor(), and CustomEditor::setDataIntern().
|
inlineinherited |
|
overrideprotectedvirtual |
Inits editor widgets from m_data.
Reimplemented from CustomEditor.
Definition at line 191 of file CustomEditors.cpp.
References CustomEditor::m_data, m_doubleEditor, and ScientificSpinBox::setValue().
|
privateslot |
Definition at line 183 of file CustomEditors.cpp.
References CustomEditor::m_data, m_doubleEditor, CustomEditor::setDataIntern(), and ScientificSpinBox::value.
Referenced by ScientificSpinBoxEditor().
|
slotinherited |
Sets the data from the model to editor.
Definition at line 40 of file CustomEditors.cpp.
References CustomEditor::initEditor(), and CustomEditor::m_data.
|
protectedinherited |
Saves the data from the editor and informs external delegates.
Definition at line 52 of file CustomEditors.cpp.
References CustomEditor::dataChanged(), and CustomEditor::m_data.
Referenced by onEditingFinished(), and ComboPropertyEditor::onIndexChanged().
void ScientificSpinBoxEditor::setDecimals | ( | int | decimals | ) |
Definition at line 172 of file CustomEditors.cpp.
References m_doubleEditor, ScientificSpinBox::setDecimals(), and ScientificSpinBox::setSingleStep().
void ScientificSpinBoxEditor::setLimits | ( | const RealLimits & | limits | ) |
Definition at line 164 of file CustomEditors.cpp.
References m_doubleEditor, ScientificSpinBox::setMaximum(), and ScientificSpinBox::setMinimum().
Referenced by GUI::View::PropertyEditorFactory::CreateEditor().
void ScientificSpinBoxEditor::setSingleStep | ( | double | step | ) |
Definition at line 178 of file CustomEditors.cpp.
References m_doubleEditor, and ScientificSpinBox::setSingleStep().
|
protectedinherited |
Definition at line 49 of file CustomEditors.h.
Referenced by CustomEditor::editorData(), initEditor(), ComboPropertyEditor::internIndex(), ComboPropertyEditor::internLabels(), onEditingFinished(), ComboPropertyEditor::onIndexChanged(), CustomEditor::setData(), and CustomEditor::setDataIntern().
|
private |
Definition at line 93 of file CustomEditors.h.
Referenced by ScientificSpinBoxEditor(), initEditor(), onEditingFinished(), setDecimals(), setLimits(), and setSingleStep().