SelectionEditorFactory for creating combobox selections for use in QTableView.
TypeSelectionItemModelFactory to use the TypeSelectionItemModel with above factory.
This commit is contained in:
parent
f8d61b61f4
commit
e44f73166f
7 changed files with 138 additions and 0 deletions
20
pglablib/TypeSelectionItemModelFactory.h
Normal file
20
pglablib/TypeSelectionItemModelFactory.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue