15 #ifndef BORNAGAIN_MVVM_VIEWMODEL_MVVM_EDITORS_COLOREDITOR_H
16 #define BORNAGAIN_MVVM_VIEWMODEL_MVVM_EDITORS_COLOREDITOR_H
35 void mousePressEvent(QMouseEvent* event)
override;
38 QColor currentColor()
const;
40 void update_components()
override;
41 QLabel* m_textLabel{
nullptr};
42 QLabel* m_pixmapLabel{
nullptr};
Event filter to prevent lost of focus by custom material editor.
Custom editor for QVariant based on QColor.
LostFocusFilter * m_focusFilter
Base class for all custom variant editors.
Event filter to prevent loss of the focus.
materialitems.h Collection of materials to populate MaterialModel.