15 #ifndef BORNAGAIN_GUI_VIEW_PROPERTYEDITOR_CUSTOMEDITORS_H
16 #define BORNAGAIN_GUI_VIEW_PROPERTYEDITOR_CUSTOMEDITORS_H
18 #include "WinDllMacros.h"
40 void setData(
const QVariant& data);
Editor for ComboProperty variant.
virtual int internIndex()
Returns index for QComboBox.
void setConnected(bool isConnected)
virtual QStringList internLabels()
Returns list of labels for QComboBox.
virtual void onIndexChanged(int index)
void initEditor() override
Inits editor widgets from m_data.
QSize minimumSizeHint() const override
QSize sizeHint() const override
class WheelEventEater * m_wheel_event_filter
ComboPropertyEditor(QWidget *parent=nullptr)
Base class for all custom variants editors.
void dataChanged(const QVariant &data)
Signal emit then user changed the data through the editor.
virtual void initEditor()
Inits editor widgets from m_data.
void setData(const QVariant &data)
Sets the data from the model to editor.
CustomEditor(QWidget *parent=nullptr)
void setDataIntern(const QVariant &data)
Saves the data from the editor and informs external delegates.
Event filter to prevent lost of focus by custom material editor.
Editor for Double variant using ScientificSpinBox.
void setDecimals(int decimals)
void initEditor() override
Inits editor widgets from m_data.
void setLimits(const RealLimits &limits)
void setSingleStep(double step)
ScientificSpinBoxEditor(QWidget *parent=nullptr)
class ScientificSpinBox * m_doubleEditor
Event filter to install on combo boxes and spin boxes to not to react on wheel events during scrollin...