Added CollationModel + factory for editing and added to EditTableWidget

This commit is contained in:
eelke 2018-12-16 11:35:39 +01:00
parent f0c1035378
commit e75b0f1a71
7 changed files with 107 additions and 19 deletions

View file

@ -1,11 +1,19 @@
#ifndef COLLATIONMODELFACTORY_H
#ifndef COLLATIONMODELFACTORY_H
#define COLLATIONMODELFACTORY_H
#include "AbstractModelFactory.h"
class CollationModelFactory
{
class PgCollationContainer;
class CollationModelFactory: public AbstractModelFactory {
Q_OBJECT
public:
CollationModelFactory();
CollationModelFactory(QObject *parent, std::shared_ptr<const PgCollationContainer> collations);
virtual QAbstractItemModel* createModel(QObject *parent = nullptr) const override;
private:
std::shared_ptr<const PgCollationContainer> m_collations;
};
#endif // COLLATIONMODELFACTORY_H
#endif // COLLATIONMODELFACTORY_H