summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/sqlite/qsql_sqlite.h
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2012-06-05 13:50:03 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-06 13:23:51 +0200
commitfc15a1d5e2cb064df7b6e7b9e821e9db20a91b85 (patch)
tree45355e4d5426f63c158353b0dea18457c76dbf6c /src/sql/drivers/sqlite/qsql_sqlite.h
parent637ecd571f10bbab36b3321edb0479d79a542ddb (diff)
QSqlResult: replace virtual hooks with virtual functions
Instead of virtual functions which would have broken binary compatibility, virtual_hook() was used to implement the virtual functionality. Now, since the step to Qt 5.0 allows breaking binary compatibility, we take the opporunity to simplify the code using real virtual functions. SetNumericalPrecision --> setNumericalPrecisionPolicy() NextResult --> nextResult() DetachFromResultSet --> detachFromResultSet() BatchOperation --> execBatch() Task-number: QTBUG-25252 Change-Id: Idd3a870f876d8b8a7457559d5f31ec2073786a75 Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'src/sql/drivers/sqlite/qsql_sqlite.h')
-rw-r--r--src/sql/drivers/sqlite/qsql_sqlite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sql/drivers/sqlite/qsql_sqlite.h b/src/sql/drivers/sqlite/qsql_sqlite.h
index 8232be0ebcc..0af6f6392f6 100644
--- a/src/sql/drivers/sqlite/qsql_sqlite.h
+++ b/src/sql/drivers/sqlite/qsql_sqlite.h
@@ -79,6 +79,7 @@ protected:
int numRowsAffected();
QVariant lastInsertId() const;
QSqlRecord record() const;
+ void detachFromResultSet();
void virtual_hook(int id, void *data);
private: