summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqldatabase.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-06 12:52:28 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2017-04-06 14:35:54 +0000
commitc50f6a832916c573a631b1b060e764705fe50434 (patch)
tree3c32a7d6986611d9333f320e1c6569cf481a276b /src/sql/kernel/qsqldatabase.cpp
parent60f6e4428fd8ec1cc2fd619b20d94a08e953af46 (diff)
parent0fc569184cf0fb6663e955e68bfa14baf3f3fe0d (diff)
Merge "Merge remote-tracking branch 'origin/5.8' into 5.9" into refs/staging/5.9
Diffstat (limited to 'src/sql/kernel/qsqldatabase.cpp')
-rw-r--r--src/sql/kernel/qsqldatabase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp
index 0416215870e..412658e39c6 100644
--- a/src/sql/kernel/qsqldatabase.cpp
+++ b/src/sql/kernel/qsqldatabase.cpp
@@ -695,6 +695,9 @@ void QSqlDatabasePrivate::init(const QString &type)
/*!
Destroys the object and frees any allocated resources.
+ \note When the last connection is destroyed, the destructor
+ implicitly calls close() to release the database connection.
+
\sa close()
*/