Doc: Adding a landing page for Qt SQL.
authorJerome Pasion <jerome.pasion@nokia.com>
Mon, 6 Aug 2012 10:21:48 +0000 (12:21 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 6 Aug 2012 14:04:25 +0000 (16:04 +0200)
-Simple landing page which contains a link to the SQL guide and API.
-Gave a new title to C++ API page.

Change-Id: I54eca4f6933bafa0affd5825e7fe2e1a2522dad0
Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
src/sql/doc/src/qtsql.qdoc
src/sql/kernel/qsql.qdoc
src/sql/kernel/qsqldatabase.cpp

index 594a812..a985c0f 100644 (file)
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
+/*!
+    \page qtsql-index.html
+    \title Qt SQL
+    \brief A module that provides a driver layer, SQL API layer, and a user
+    interface layer for SQL databases.
+    \ingroup modules
+
+    Qt SQL is an essential module which provides support for SQL databases. Qt
+    SQL's APIs are divided into different layers:
+
+    \list
+    \li Driver layer
+    \li SQL API layer
+    \li User interface layer
+    \endlist
+    The \l{SQL Programming} guide contains information about development using
+    Qt SQL.
+
+    \section1 Getting Started
+    To enable Qt SQL in a project, add this directive into the C++ files:
+    \code
+    #include <QtSQL>
+    \endcode
+    To link against the Qt SQL module, add this line to the project file:
+    \code
+    QT += sql
+    \endcode
+
+    \section1 Reference
+    These are links to the API reference materials.
+    \list
+    \li \l{Qt SQL Module - C++ Classes}{C++ classes}
+    \endlist
+*/
 
 /*!
     \module QtSql
-    \title Qt SQL Module
+    \title Qt SQL Module - C++ Classes
     \ingroup modules
 
     To include the definitions of the module's classes, use the
index 6fbfc04..20ebb6d 100644 (file)
@@ -35,7 +35,7 @@
     \ingroup database
 
 
-    \sa {Qt SQL Module}
+    \sa {Qt SQL}
 */
 
 /*!
index 6dae39b..f0fa5c7 100644 (file)
@@ -440,7 +440,7 @@ void QSqlDatabasePrivate::disable()
     If you have created your own custom driver, you must register it
     with registerSqlDriver().
 
-    \sa QSqlDriver, QSqlQuery, {Qt SQL Module}, {Threads and the SQL Module}
+    \sa QSqlDriver, QSqlQuery, {Qt SQL}, {Threads and the SQL Module}
 */
 
 /*! \fn QSqlDatabase QSqlDatabase::addDatabase(const QString &type, const QString &connectionName)