summaryrefslogtreecommitdiffstats
path: root/src/sql/models/qsqlquerymodel.h
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2012-02-09 14:53:35 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-15 02:36:07 +0100
commit2ecdb8c091cbfdc2b4f81c90828fb61b96c565fe (patch)
treed642200ceda4aa067420667026b20a375abca7a2 /src/sql/models/qsqlquerymodel.h
parent980947122307797e1d8da03f768d8f14a360d20b (diff)
QSql*Model: make indexInQuery() virtual
Qt 5 seems like an excellent opportunity to simplify logic and separate concerns by making indexInQuery() virtual. Note that this wasn't my idea, but was mentioned in a helpful comment. Change-Id: Ie29ead110def45297c32de3ce6d07a8eefb08d8c Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/sql/models/qsqlquerymodel.h')
-rw-r--r--src/sql/models/qsqlquerymodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/models/qsqlquerymodel.h b/src/sql/models/qsqlquerymodel.h
index 7db973b0d42..b5e1a7a7468 100644
--- a/src/sql/models/qsqlquerymodel.h
+++ b/src/sql/models/qsqlquerymodel.h
@@ -92,7 +92,7 @@ public:
protected:
virtual void queryChange();
- QModelIndex indexInQuery(const QModelIndex &item) const;
+ virtual QModelIndex indexInQuery(const QModelIndex &item) const;
void setLastError(const QSqlError &error);
QSqlQueryModel(QSqlQueryModelPrivate &dd, QObject *parent = 0);
};