24 #include <QVBoxLayout>
30 InstrumentPropertyEditor::InstrumentPropertyEditor(QWidget* parent)
34 auto layout =
new QVBoxLayout(
this);
44 auto delegate = std::make_unique<ViewModelDelegate>();
45 delegate->setEditorFactory(std::make_unique<CustomBeamPropertyEditorFactory>(models));
void setViewModelDelegate(std::unique_ptr< ViewModelDelegate > delegate)
Widget holding standard QTreeView and intended for displaying all properties of given SessionItem.
void setItem(SessionItem *item)
T * topItem() const
Returns top item of the given type.
Main class to holds all models of GUI session.
InstrumentModel * instrumentModel()
void setModels(ApplicationModels *models)
ModelView::PropertyTreeView * m_beamPropertyEditor
QSize minimumSizeHint() const override
QSize sizeHint() const override
~InstrumentPropertyEditor()
Represents specular beam, contains settings of scan parameters.
Represents specular instrument.
static const std::string P_BEAM
materialitems.h Collection of materials to populate MaterialModel.
DAREFLCORE_EXPORT QSize DockMinimumSizeHint()
Hint on minimum size of docks on main reflectometry window.
DAREFLCORE_EXPORT QSize DockSizeHint()
Hint on size of docks on main reflectometry window.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.