diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 22:04:08 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 22:04:08 -0600 |
commit | e02e31c8b9d854cd62cbe9799228f6e08e882773 (patch) | |
tree | 53303c981d0b20e03c5a2fc8e959fa74adcb90d1 /doc/sql.doc | |
parent | 143f194af098d44bf0dd1ebb29e59f30ce48d523 (diff) | |
download | tqt3-e02e31c8b9d854cd62cbe9799228f6e08e882773.tar.gz tqt3-e02e31c8b9d854cd62cbe9799228f6e08e882773.zip |
Sync with latest script
Diffstat (limited to 'doc/sql.doc')
-rw-r--r-- | doc/sql.doc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/sql.doc b/doc/sql.doc index 0c73d1d2a..bfd85e8e9 100644 --- a/doc/sql.doc +++ b/doc/sql.doc @@ -16,7 +16,7 @@ ** and the KDE Free Qt Foundation. ** ** Please review the following information to ensure GNU General -** Public Licensing retquirements will be met: +** Public Licensing requirements will be met: ** http://trolltech.com/products/qt/licenses/licensing/opensource/. ** If you are unsure which license is appropriate for your use, please ** review the following information: @@ -115,7 +115,7 @@ your Qt applications. This overview assumes that you have at least a basic knowledge of SQL. You should be able to understand simple \c SELECT, \c INSERT, \c UPDATE and \c DELETE commands. Although the \l QSqlCursor class provides an -interface to database browsing and editing that does not \e retquire a +interface to database browsing and editing that does not \e require a knowledge of SQL, a basic understanding of SQL is highly recommended. A standard text covering SQL databases is \e {An Introduction to Database Systems (7th ed.)} by C. J. Date, ISBN 0201385902. @@ -219,10 +219,10 @@ At least one database connection must be created and opened before the If the application only needs a single database connection, the \l QSqlDatabase class can create a connection which is used by default -for all SQL operations. If multiple database connections are retquired +for all SQL operations. If multiple database connections are required these can easily be set up. -\l QSqlDatabase retquires the \c qsqldatabase.h header file. +\l QSqlDatabase requires the \c qsqldatabase.h header file. \target Connecting_to_a_Single_Database \section1 Connecting to a Single Database @@ -513,7 +513,7 @@ follows this one we show how to link widgets to database cursors. Once we have a knowledge of both cursors and data-aware widgets we can discuss \link #Subclassing_QSqlCursor subclassing QSqlCursor \endlink. -The \l QSqlCursor class retquires the \c qsqlcursor.h header file. +The \l QSqlCursor class requires the \c qsqlcursor.h header file. \target Retrieving_Records \section2 Retrieving Records @@ -734,7 +734,7 @@ iteration we call the cursor's primeInsert() method. This method returns a pointer to a \l QSqlRecord buffer in which all the fields are set to \c NULL. (Note that QSqlCursor::primeInsert() is virtual, and can be customized by derived classes. See \l QSqlCursor). Next we -call setValue() for each field that retquires a value. Finally we call +call setValue() for each field that requires a value. Finally we call insert() to insert the record. The insert() call returns the number of rows inserted. @@ -815,7 +815,7 @@ examples provides additional information. \printline \caption From \l sql/overview/table1/main.cpp -Data-Aware tables retquire the \c qdatatable.h and \c qsqlcursor.h header +Data-Aware tables require the \c qdatatable.h and \c qsqlcursor.h header files. We create our application object, call createConnections() and create the cursor. We create the \l QDataTable passing it a pointer to the cursor, and set the autoPopulate flag to TRUE. Next we make our \l @@ -1144,7 +1144,7 @@ leave the loop. When the user edits the status field in the QDataTable they will be presented with a combobox of valid status names taken from the status table. However the status displayed is still the raw statusid. To -display the status name when the field isn't being edited retquires us +display the status name when the field isn't being edited requires us to subclass QDataTable and reimplement the paintField() function. \quotefile sql/overview/table4/main.h @@ -1214,7 +1214,7 @@ this stage. \skipto InvoiceItemCursor \printline InvoiceItemCursor -Whenever we retquire a cursor over the invoiceitem table we can create +Whenever we require a cursor over the invoiceitem table we can create an InvoiceItemCursor instead of a generic QSqlCursor. We still need to show the product name rather than the pricesid. @@ -1260,7 +1260,7 @@ which perform real calculations. The header file, \l sql/overview/subclass4/main.h, remains unchanged from the previous example, but the constructor and calculateField() -function retquire some simple expansion. We'll look at each in turn. +function require some simple expansion. We'll look at each in turn. \quotefile sql/overview/subclass4/main.cpp \skipto InvoiceItem |