|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Editor for ComboProperty variant.
Definition at line 54 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 | |
| ComboPropertyEditor (QWidget *parent=nullptr) | |
| QVariant | editorData () |
| QSize | minimumSizeHint () const override |
| QSize | sizeHint () const override |
Protected Slots | |
| virtual void | onIndexChanged (int index) |
Protected Member Functions | |
| void | initEditor () override |
| Inits editor widgets from m_data. More... | |
| virtual int | internIndex () |
| Returns index for QComboBox. More... | |
| virtual QStringList | internLabels () |
| Returns list of labels for QComboBox. More... | |
| void | setConnected (bool isConnected) |
| void | setDataIntern (const QVariant &data) |
| Saves the data from the editor and informs external delegates. More... | |
Protected Attributes | |
| QComboBox * | m_box |
| QVariant | m_data |
| class WheelEventEater * | m_wheel_event_filter |
|
explicit |
Definition at line 60 of file CustomEditors.cpp.
References m_box, m_wheel_event_filter, and setConnected().
|
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 99 of file CustomEditors.cpp.
References internIndex(), internLabels(), m_box, and setConnected().
|
protectedvirtual |
Returns index for QComboBox.
Definition at line 122 of file CustomEditors.cpp.
References ComboProperty::currentIndex(), and CustomEditor::m_data.
Referenced by initEditor().
|
protectedvirtual |
Returns list of labels for QComboBox.
Definition at line 112 of file CustomEditors.cpp.
References ComboProperty::getValues(), and CustomEditor::m_data.
Referenced by initEditor().
|
override |
Definition at line 84 of file CustomEditors.cpp.
References m_box.
|
protectedvirtualslot |
Definition at line 89 of file CustomEditors.cpp.
References CustomEditor::m_data, ComboProperty::setCurrentIndex(), and CustomEditor::setDataIntern().
Referenced by setConnected().
|
protected |
Definition at line 130 of file CustomEditors.cpp.
References m_box, and onIndexChanged().
Referenced by ComboPropertyEditor(), and initEditor().
|
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 ScientificSpinBoxEditor::onEditingFinished(), and onIndexChanged().
|
override |
Definition at line 79 of file CustomEditors.cpp.
References m_box.
|
protected |
Definition at line 71 of file CustomEditors.h.
Referenced by ComboPropertyEditor(), initEditor(), minimumSizeHint(), setConnected(), and sizeHint().
|
protectedinherited |
Definition at line 49 of file CustomEditors.h.
Referenced by CustomEditor::editorData(), ScientificSpinBoxEditor::initEditor(), internIndex(), internLabels(), ScientificSpinBoxEditor::onEditingFinished(), onIndexChanged(), CustomEditor::setData(), and CustomEditor::setDataIntern().
|
protected |
Definition at line 72 of file CustomEditors.h.
Referenced by ComboPropertyEditor().