From 0ce1c5b4e27b85a122a02e8cc9c3eb49c9bc806f Mon Sep 17 00:00:00 2001 From: Stian Sandvik Thomassen Date: Tue, 13 Oct 2009 14:53:10 +1000 Subject: Doc: clarified what addDatabase() returns if the driver cannot be loaded If the driver cannot be loaded, isValid() returns false. Reviewed-by: Bill King --- src/sql/kernel/qsqldatabase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp index 821760f..193aa7c 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 -- cgit v0.12