diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/src/sql/tqsqlcursor.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/src/sql/tqsqlcursor.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/experimental/tqtinterface/qt4/src/sql/tqsqlcursor.cpp b/experimental/tqtinterface/qt4/src/sql/tqsqlcursor.cpp index 0d9fc538b..621d693bd 100644 --- a/experimental/tqtinterface/qt4/src/sql/tqsqlcursor.cpp +++ b/experimental/tqtinterface/qt4/src/sql/tqsqlcursor.cpp @@ -134,11 +134,11 @@ TQString qWhereClause( TQSqlRecord* rec, const TQString& prefix, const TQString& A TQSqlCursor is a database record (see \l TQSqlRecord) that corresponds to a table or view within an SQL database (see \l TQSqlDatabase). There are two buffers in a cursor, one used for - browsing and one used for editing records. Each buffer tqcontains a + browsing and one used for editing records. Each buffer contains a list of fields which correspond to the fields in the table or view. - When positioned on a valid record, the browse buffer tqcontains the + When positioned on a valid record, the browse buffer contains the values of the current record's fields from the database. The edit buffer is separate, and is used for editing existing records and inserting new records. @@ -168,7 +168,7 @@ TQString qWhereClause( TQSqlRecord* rec, const TQString& prefix, const TQString& When next() returns FALSE, there are no more records to process, and the loop terminates. - For editing records (rows of data), a cursor tqcontains a separate + For editing records (rows of data), a cursor contains a separate edit buffer which is independent of the fields used when browsing. The functions insert(), update() and del() operate on the edit buffer. This allows the cursor to be repositioned to other @@ -216,7 +216,7 @@ TQString qWhereClause( TQSqlRecord* rec, const TQString& prefix, const TQString& from becoming invalid. The edits will still not be visible when navigating the cursor until select() is called. - TQSqlCursor tqcontains virtual methods which allow editing behavior + TQSqlCursor contains virtual methods which allow editing behavior to be customized by subclasses. This allows custom cursors to be created that encapsulate the editing behavior of a database table for an entire application. For example, a cursor can be customized @@ -548,7 +548,7 @@ TQSqlIndex TQSqlCursor::primaryIndex( bool setFromCursor ) const if ( setFromCursor ) { for ( uint i = 0; i < d->priIndx.count(); ++i ) { const TQString fn = d->priIndx.fieldName( i ); - if ( tqcontains( fn ) ) + if ( contains( fn ) ) d->priIndx.setValue( i, value( fn ) ); } } @@ -737,9 +737,9 @@ bool TQSqlCursor::select( const TQSqlIndex& sort ) In this example the TQSqlIndex, pk, is used for two different purposes. When used as the filter (first) argument, the field - names it tqcontains are used to construct the WHERE clause, each set + names it contains are used to construct the WHERE clause, each set to the current cursor value, \c{WHERE id=10}, in this case. When - used as the sort (second) argument the field names it tqcontains are + used as the sort (second) argument the field names it contains are used for the ORDER BY clause, \c{ORDER BY id} in this example. */ |