23 #include <QHBoxLayout>
27 #include <QVBoxLayout>
33 , m_viewModel(view_model)
35 , m_selectorTree(new QTreeView)
40 auto layout =
new QVBoxLayout(
this);
52 m_selectorTree->setSelectionMode(QAbstractItemView::ExtendedSelection);
56 connect(
selectionModel(), &DataSelectionModel::selectionChanged,
this,
Widget holding standard QTreeView and intended for displaying all properties of given SessionItem.
void setItem(SessionItem *item)
Custom selection model for data view model (AbstractViewModel).
CanvasItem * activeCanvas() const
Returns active canvas.
ModelView::GraphItem * selectedGraph() const
Returns currently selected graph. If more than one graph is selected, will return first one.
View model for ExperimentalDataModel with drag-and-drop support.
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.