24 #include <QVBoxLayout>
33 auto layout =
new QVBoxLayout;
34 layout->setContentsMargins(0, 0, 0, 0);
47 m_delegate->setEditorFactory(std::make_unique<CustomLayerTreeEditorFactory>(models));
T * topItem() const
Returns top item of the given type.
Model delegate to provide editing/painting for custom variants.
Main class to holds all models of GUI session.
SampleModel * sampleModel()
Custom selection model for layer view model (AbstractViewModel).
Extension of QTreeView for layer editing.
void setModel(QAbstractItemModel *model) override
Multi layer capable of holding layers and other multi-layers.
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.