Messy commit. Testing suff and some improvements to how data is shown.

This commit is contained in:
eelke 2017-12-09 10:45:13 +01:00
parent bebb3391c3
commit 3a13b7ffb4
59 changed files with 2045 additions and 716 deletions

21
pglab/BaseTableModel.h Normal file
View file

@ -0,0 +1,21 @@
#ifndef BASETABLEMODEL_H
#define BASETABLEMODEL_H
#include <QAbstractTableModel>
#include "Pgsql_declare.h"
class BaseTableModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit BaseTableModel(QObject *parent);
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
protected:
virtual Oid getType(int column) const = 0;
virtual QVariant getData(const QModelIndex &index) const = 0;
};
#endif // BASETABLEMODEL_H