pgLab/pglablib/TypeSelectionItemModelFactory.h
eelke e44f73166f SelectionEditorFactory for creating combobox selections for use in QTableView.
TypeSelectionItemModelFactory to use the TypeSelectionItemModel with above factory.
2018-12-15 15:28:33 +01:00

20 lines
533 B
C++

#ifndef TYPESELECTIONITEMMODELFACTORY_H
#define TYPESELECTIONITEMMODELFACTORY_H
#include "AbstractModelFactory.h"
class PgTypeContainer;
void setTypeList();
class TypeSelectionItemModelFactory: public AbstractModelFactory {
Q_OBJECT
public:
TypeSelectionItemModelFactory(QObject *parent, std::shared_ptr<const PgTypeContainer> types);
virtual QAbstractItemModel* createModel(QObject *parent = nullptr) const override;
private:
std::shared_ptr<const PgTypeContainer> m_types;
};
#endif // TYPESELECTIONITEMMODELFACTORY_H