SelectionEditorFactory + ItemModel + ItemModelFactory combination is working

in new EditTableWidget

(EditTableWidget is very much WIP)
This commit is contained in:
eelke 2018-12-15 20:27:40 +01:00
parent e44f73166f
commit 742fd0a4d3
19 changed files with 419 additions and 80 deletions

View file

@ -0,0 +1,15 @@
#include "TypeModelFactory.h"
#include "TypeSelectionItemModel.h"
TypeModelFactory::TypeModelFactory(QObject *parent, std::shared_ptr<const PgTypeContainer> types)
: AbstractModelFactory(parent)
, m_types(types)
{}
QAbstractItemModel* TypeModelFactory::createModel(QObject *parent) const
{
auto model = new TypeModel(parent);
model->setTypeList(m_types);
return model;
}