17 lines
485 B
C++
17 lines
485 B
C++
|
#include <memory>
|
||
|
#include "component_preview_grid_widget.h"
|
||
|
#include "component_list_model.h"
|
||
|
|
||
|
ComponentPreviewGridWidget::ComponentPreviewGridWidget(const Document *document, QWidget *parent):
|
||
|
PreviewGridView(parent),
|
||
|
m_document(document)
|
||
|
{
|
||
|
m_componentListModel = std::make_unique<ComponentListModel>(m_document);
|
||
|
setModel(m_componentListModel.get());
|
||
|
}
|
||
|
|
||
|
ComponentListModel *ComponentPreviewGridWidget::componentListModel()
|
||
|
{
|
||
|
return m_componentListModel.get();
|
||
|
}
|