Nut/src/nut/models/sqlmodel_p.h

33 lines
543 B
C
Raw Normal View History

2018-02-13 23:39:21 +08:00
#ifndef SQLMODEL_P_H
#define SQLMODEL_P_H
2020-07-29 22:11:19 +08:00
#include <QtCore/QSharedPointer>
#include <QtCore/QString>
2020-08-08 15:29:16 +08:00
#include <functional>
#include <QtNut/nut_global.h>
2018-02-13 23:39:21 +08:00
NUT_BEGIN_NAMESPACE
class SqlModel;
class Table;
class TableModel;
2020-08-08 15:29:16 +08:00
class NUT_EXPORT SqlModelPrivate {
2018-02-13 23:39:21 +08:00
public:
2020-08-08 15:29:16 +08:00
SqlModel *q_ptr;
Q_DECLARE_PUBLIC(SqlModel);
2019-06-18 21:40:40 +08:00
explicit SqlModelPrivate(SqlModel *parent);
2018-02-26 18:14:36 +08:00
2018-02-13 23:39:21 +08:00
QString tableName;
2019-06-18 23:37:03 +08:00
RowList<Table> rows;
2018-02-13 23:39:21 +08:00
TableModel *model;
2020-08-08 15:29:16 +08:00
std::function <QVariant(int, QVariant)> renderer;
2018-02-13 23:39:21 +08:00
};
NUT_END_NAMESPACE
#endif // SQLMODEL_P_H