BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Editor for ComboProperty 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 | |
ComboPropertyEditor (QWidget *parent=nullptr) | |
QVariant | editorData () |
QSize | minimumSizeHint () const |
QSize | sizeHint () const |
Protected Slots | |
virtual void | onIndexChanged (int index) |
Protected Member Functions | |
void | initEditor () |
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 |
Editor for ComboProperty variant.
Definition at line 72 of file CustomEditors.h.
|
explicit |
Definition at line 136 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 PropertyWidgetItem::connectEditor(), SessionModelDelegate::createEditor(), and CustomEditor::setDataIntern().
|
inlineinherited |
|
protectedvirtual |
Inits editor widgets from m_data.
Reimplemented from CustomEditor.
Definition at line 173 of file CustomEditors.cpp.
References internIndex(), internLabels(), m_box, and setConnected().
|
protectedvirtual |
Returns index for QComboBox.
Definition at line 196 of file CustomEditors.cpp.
References ComboProperty::currentIndex(), and CustomEditor::m_data.
Referenced by initEditor().
|
protectedvirtual |
Returns list of labels for QComboBox.
Definition at line 186 of file CustomEditors.cpp.
References ComboProperty::getValues(), and CustomEditor::m_data.
Referenced by initEditor().
QSize ComboPropertyEditor::minimumSizeHint | ( | ) | const |
Definition at line 158 of file CustomEditors.cpp.
References m_box.
|
protectedvirtualslot |
Definition at line 163 of file CustomEditors.cpp.
References ComboProperty::currentIndex(), CustomEditor::m_data, ComboProperty::setCurrentIndex(), and CustomEditor::setDataIntern().
Referenced by setConnected().
|
protected |
Definition at line 204 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 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(), IntEditor::onEditingFinished(), onIndexChanged(), and MultiComboPropertyEditor::onModelDataChanged().
QSize ComboPropertyEditor::sizeHint | ( | ) | const |
Definition at line 153 of file CustomEditors.cpp.
References m_box.
|
protected |
Definition at line 89 of file CustomEditors.h.
Referenced by ComboPropertyEditor(), initEditor(), minimumSizeHint(), setConnected(), and sizeHint().
|
protectedinherited |
Definition at line 45 of file CustomEditors.h.
Referenced by ExternalPropertyEditor::buttonClicked(), CustomEditor::editorData(), ExternalPropertyEditor::initEditor(), ScientificDoublePropertyEditor::initEditor(), DoubleEditor::initEditor(), ScientificSpinBoxEditor::initEditor(), IntEditor::initEditor(), BoolEditor::initEditor(), MultiComboPropertyEditor::initEditor(), internIndex(), internLabels(), BoolEditor::onCheckBoxChange(), ScientificDoublePropertyEditor::onEditingFinished(), DoubleEditor::onEditingFinished(), ScientificSpinBoxEditor::onEditingFinished(), IntEditor::onEditingFinished(), onIndexChanged(), MultiComboPropertyEditor::onModelDataChanged(), CustomEditor::setData(), CustomEditor::setDataIntern(), and MultiComboPropertyEditor::updateBoxLabel().
|
protected |
Definition at line 90 of file CustomEditors.h.
Referenced by ComboPropertyEditor().