15 #ifndef BORNAGAIN_MVVM_VIEWMODEL_MVVM_EDITORS_EXTERNALPROPERTYEDITOR_H
16 #define BORNAGAIN_MVVM_VIEWMODEL_MVVM_EDITORS_EXTERNALPROPERTYEDITOR_H
36 void setCallback(std::function<
void(
const QVariant&)> callback);
42 void update_components()
override;
Event filter to prevent lost of focus by custom material editor.
Base class for all custom variant editors.
Custom editor for QVariant based on ExternalProperty.
LostFocusFilter * m_focusFilter
std::function< void(const QVariant &)> m_callback
Event filter to prevent loss of the focus.
materialitems.h Collection of materials to populate MaterialModel.