summaryrefslogtreecommitdiffstats
path: root/listmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'listmodel.h')
-rw-r--r--listmodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/listmodel.h b/listmodel.h
index 1ecf10b..42f5ff5 100644
--- a/listmodel.h
+++ b/listmodel.h
@@ -24,6 +24,7 @@ class ListModel : public QAbstractItemModel {
ListModel(const QString table, QObject *parent);
~ListModel();
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
+ QModelIndex index(const QVariant &data) const;
QModelIndex parent(const QModelIndex &) const { return QModelIndex(); };
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &) const { return 1; };