BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Editor for Int variant. 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 | |
IntEditor (QWidget *parent=nullptr) | |
QVariant | editorData () |
void | setLimits (const RealLimits &limits) |
Protected Member Functions | |
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 |
Private Slots | |
void | onEditingFinished () |
Private Attributes | |
class QSpinBox * | m_intEditor |
Editor for Int variant.
Definition at line 156 of file CustomEditors.h.
IntEditor::IntEditor | ( | QWidget * | parent = nullptr | ) |
Definition at line 372 of file CustomEditors.cpp.
References m_intEditor, and onEditingFinished().
|
signalinherited |
Signal emit then user changed the data through the editor.
Referenced by PropertyWidgetItem::connectEditor(), SessionModelDelegate::createEditor(), and CustomEditor::setDataIntern().
|
inlineinherited |
|
protectedvirtual |
Inits editor widgets from m_data.
Reimplemented from CustomEditor.
Definition at line 410 of file CustomEditors.cpp.
References CustomEditor::m_data, and m_intEditor.
|
privateslot |
Definition at line 402 of file CustomEditors.cpp.
References CustomEditor::m_data, m_intEditor, and CustomEditor::setDataIntern().
Referenced by IntEditor().
|
slotinherited |
Sets the data from the model to editor.
Definition at line 48 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 60 of file CustomEditors.cpp.
References CustomEditor::dataChanged(), and CustomEditor::m_data.
Referenced by ExternalPropertyEditor::buttonClicked(), BoolEditor::onCheckBoxChange(), ScientificDoublePropertyEditor::onEditingFinished(), DoubleEditor::onEditingFinished(), ScientificSpinBoxEditor::onEditingFinished(), onEditingFinished(), ComboPropertyEditor::onIndexChanged(), and MultiComboPropertyEditor::onModelDataChanged().
void IntEditor::setLimits | ( | const RealLimits & | limits | ) |
Definition at line 392 of file CustomEditors.cpp.
References RealLimits::hasLowerLimit(), RealLimits::hasUpperLimit(), RealLimits::lowerLimit(), m_intEditor, and RealLimits::upperLimit().
Referenced by PropertyEditorFactory::CreateEditor().
|
protectedinherited |
Definition at line 45 of file CustomEditors.h.
Referenced by ExternalPropertyEditor::buttonClicked(), CustomEditor::editorData(), ExternalPropertyEditor::initEditor(), ScientificDoublePropertyEditor::initEditor(), DoubleEditor::initEditor(), ScientificSpinBoxEditor::initEditor(), initEditor(), BoolEditor::initEditor(), MultiComboPropertyEditor::initEditor(), ComboPropertyEditor::internIndex(), ComboPropertyEditor::internLabels(), BoolEditor::onCheckBoxChange(), ScientificDoublePropertyEditor::onEditingFinished(), DoubleEditor::onEditingFinished(), ScientificSpinBoxEditor::onEditingFinished(), onEditingFinished(), ComboPropertyEditor::onIndexChanged(), MultiComboPropertyEditor::onModelDataChanged(), CustomEditor::setData(), CustomEditor::setDataIntern(), and MultiComboPropertyEditor::updateBoxLabel().
|
private |
Definition at line 170 of file CustomEditors.h.
Referenced by IntEditor(), initEditor(), onEditingFinished(), and setLimits().