recover sql model invalid line [skip ci]
This commit is contained in:
parent
b3193cf1c6
commit
251fc50d53
|
|
@ -135,10 +135,10 @@ QVariant SqlModel::headerData(int section, Qt::Orientation orientation, int role
|
|||
return QAbstractItemModel::headerData(section, orientation, role);
|
||||
}
|
||||
|
||||
Table *SqlModel::at(const int &i) const
|
||||
Row<Table> SqlModel::at(const int &i) const
|
||||
{
|
||||
Q_D(const SqlModel);
|
||||
return d->rows.at(i).data();
|
||||
return d->rows.at(i);
|
||||
}
|
||||
|
||||
SqlModelPrivate::SqlModelPrivate(SqlModel *parent) : q_ptr(parent)
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public:
|
|||
void append(Row<Table> table);
|
||||
// void append(Table *table);
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
Table *at(const int &i) const;
|
||||
Row<Nut::Table> at(const int &i) const;
|
||||
|
||||
void setRenderer(const std::function<QVariant (int, QVariant)> &renderer);
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class SqlModelPrivate {
|
|||
SqlModel *q_ptr;
|
||||
Q_DECLARE_PUBLIC(SqlModel)
|
||||
public:
|
||||
explicit SqlModelPrivate() = default;
|
||||
explicit SqlModelPrivate(SqlModel *parent);
|
||||
|
||||
QString tableName;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue