15 #ifndef BORNAGAIN_MVVM_VIEWMODEL_MVVM_EDITORS_EXTERNALPROPERTYCOMBOEDITOR_H
16 #define BORNAGAIN_MVVM_VIEWMODEL_MVVM_EDITORS_EXTERNALPROPERTYCOMBOEDITOR_H
23 class QStandardItemModel;
36 using callback_t = std::function<std::vector<ModelView::ExternalProperty>()>;
40 QSize sizeHint()
const override;
41 QSize minimumSizeHint()
const override;
44 virtual void onIndexChanged(
int index);
48 void setConnected(
bool isConnected);
49 void update_components()
override;
52 QComboBox* m_box{
nullptr};
53 QStandardItemModel* m_comboModel{
nullptr};
The ExternalProperty class defines custom QVariant property to carry the text, color and an identifie...
Base class for all custom variant editors.
Custom editor for table/tree cells to select ExternalProperty from the list of external properties.
std::function< std::vector< ModelView::ExternalProperty >()> callback_t
callback_t m_getPropertiesCallback
materialitems.h Collection of materials to populate MaterialModel.