From 2ecdb8c091cbfdc2b4f81c90828fb61b96c565fe Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Thu, 9 Feb 2012 14:53:35 +0100 Subject: 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 --- dist/changes-5.0.0 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index bb4ceef0d0..884c3083fc 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -213,6 +213,8 @@ information about a particular change. - QSystemLocale has been removed from the public API. +- QSqlQueryModel::indexInQuery() is now virtual. See note below under QSql. + **************************************************************************** * General * **************************************************************************** @@ -368,6 +370,10 @@ ignore the rest of the range. -For OnManualSubmit, insertRecord() no longer leaves behind an empty row if setRecord() fails. +* QSqlQueryModel::indexInQuery() is now virtual. See +QSqlTableModel::indexInQuery() as example of how to implement in a +subclass. + **************************************************************************** * Database Drivers * **************************************************************************** -- cgit v1.2.3