summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorStian Sandvik Thomassen <stian.thomassen@nokia.com>2009-10-13 14:53:10 +1000
committerStian Sandvik Thomassen <stian.thomassen@nokia.com>2009-10-13 14:53:10 +1000
commit0ce1c5b4e27b85a122a02e8cc9c3eb49c9bc806f (patch)
treefd67aa2c72e5be292d9eeb5305da78c0c53bf1c7 /src/sql
parentde164c161c3ade4b5b5f4164495dd35578d31b1d (diff)
Doc: clarified what addDatabase() returns if the driver cannot be loaded
If the driver cannot be loaded, isValid() returns false. Reviewed-by: Bill King
Diffstat (limited to 'src/sql')
-rw-r--r--src/sql/kernel/qsqldatabase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp
index 821760fcd4..193aa7c769 100644
--- a/src/sql/kernel/qsqldatabase.cpp
+++ b/src/sql/kernel/qsqldatabase.cpp
@@ -455,6 +455,8 @@ void QSqlDatabasePrivate::disable()
The database connection is referred to by \a connectionName. The
newly added database connection is returned.
+ If \a type is not available or could not be loaded, isValid() returns false.
+
If \a connectionName is not specified, the new connection becomes
the default connection for the application, and subsequent calls
to database() without the connection name argument will return the