diff options
Diffstat (limited to 'listmodel.h')
-rw-r--r-- | listmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/listmodel.h b/listmodel.h index edb21ad..fb3612d 100644 --- a/listmodel.h +++ b/listmodel.h @@ -26,6 +26,7 @@ class ListModel : public QAbstractItemModel { QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; QModelIndex index(const QVariant &data) const; QModelIndex parent(const QModelIndex &) const { return QModelIndex(); }; + const QString table() const { return mTable; }; int rowCount(const QModelIndex &parent = QModelIndex()) const; int columnCount(const QModelIndex &) const { return 1; }; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; |