diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-31 13:38:31 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-31 13:43:03 +0900 |
| commit | 6e4a70d41a2636ce99a1da7b6827ac5685ed3186 (patch) | |
| tree | b029ebf1d5be6d1ac0ee361e7bfb68a7dbed0eec /doc/man/man3/tqsqldriver.3qt | |
| parent | 81ade129093a279e6537db25710583fd2bba9427 (diff) | |
| download | tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.tar.gz tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.zip | |
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked and manually edited from commit 6dd781c483eea56f51ae0eff47d857976b5d0f0d)
Diffstat (limited to 'doc/man/man3/tqsqldriver.3qt')
| -rw-r--r-- | doc/man/man3/tqsqldriver.3qt | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/man/man3/tqsqldriver.3qt b/doc/man/man3/tqsqldriver.3qt index f06a6189f..cd02f0ba5 100644 --- a/doc/man/man3/tqsqldriver.3qt +++ b/doc/man/man3/tqsqldriver.3qt @@ -61,7 +61,7 @@ Inherits TQObject. .BI "virtual TQString \fBnullText\fR () const" .br .ti -1c -.BI "virtual TQString \fBformatValue\fR ( const QSqlField * field, bool trimStrings = FALSE ) const" +.BI "virtual TQString \fBformatValue\fR ( const QSqlField * field, bool trimStrings = false ) const" .br .ti -1c .BI "QSqlError \fBlastError\fR () const" @@ -127,20 +127,20 @@ Default constructor. Creates a new driver with parent \fIparent\fR, called \fIna .SH "QSqlDriver::~QSqlDriver ()" Destroys the object and frees any allocated resources. .SH "bool QSqlDriver::beginTransaction ()\fC [virtual]\fR" -Protected function which derived classes can reimplement to begin a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE. +Protected function which derived classes can reimplement to begin a transaction. If successful, return true, otherwise return false. The default implementation returns false. .PP See also commitTransaction() and rollbackTransaction(). .SH "void QSqlDriver::close ()\fC [pure virtual]\fR" -Derived classes must reimplement this abstract virtual function in order to close the database connection. Return TRUE on success, FALSE on failure. +Derived classes must reimplement this abstract virtual function in order to close the database connection. Return true on success, false on failure. .PP See also setOpen(). .SH "bool QSqlDriver::commitTransaction ()\fC [virtual]\fR" -Protected function which derived classes can reimplement to commit a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE. +Protected function which derived classes can reimplement to commit a transaction. If successful, return true, otherwise return false. The default implementation returns false. .PP See also beginTransaction() and rollbackTransaction(). .SH "QSqlQuery QSqlDriver::createQuery () const\fC [pure virtual]\fR" Creates an empty SQL result on the database. Derived classes must reimplement this function and return a QSqlQuery object appropriate for their database to the caller. -.SH "TQString QSqlDriver::formatValue ( const QSqlField * field, bool trimStrings = FALSE ) const\fC [virtual]\fR" +.SH "TQString QSqlDriver::formatValue ( const QSqlField * field, bool trimStrings = false ) const\fC [virtual]\fR" Returns a string representation of the \fIfield\fR value for the database. This is used, for example, when constructing INSERT and UPDATE statements. .PP The default implementation returns the value formatted as a string according to the following rules: @@ -149,7 +149,7 @@ The default implementation returns the value formatted as a string according to If \fIfield\fR is NULL, nullText() is returned. .IP .TP -If \fIfield\fR is character data, the value is returned enclosed in single quotation marks, which is appropriate for many SQL databases. Any embedded single-quote characters are escaped (replaced with two single-quote characters). If \fItrimStrings\fR is TRUE (the default is FALSE), all trailing whitespace is trimmed from the field. +If \fIfield\fR is character data, the value is returned enclosed in single quotation marks, which is appropriate for many SQL databases. Any embedded single-quote characters are escaped (replaced with two single-quote characters). If \fItrimStrings\fR is true (the default is false), all trailing whitespace is trimmed from the field. .IP .TP If \fIfield\fR is date/time data, the value is formatted in ISO format and enclosed in single quotation marks. If the date/time data is invalid, nullText() is returned. @@ -163,15 +163,15 @@ For any other field type toString() will be called on its value and the result r .PP See also QVariant::toString(). .SH "bool QSqlDriver::hasFeature ( DriverFeature f ) const\fC [pure virtual]\fR" -Returns TRUE if the driver supports feature \fIf\fR; otherwise returns FALSE. +Returns true if the driver supports feature \fIf\fR; otherwise returns false. .PP Note that some databases need to be open() before this can be determined. .PP See also DriverFeature. .SH "bool QSqlDriver::isOpen () const" -Returns TRUE if the database connection is open; otherwise returns FALSE. +Returns true if the database connection is open; otherwise returns false. .SH "bool QSqlDriver::isOpenError () const" -Returns TRUE if the there was an error opening the database connection; otherwise returns FALSE. +Returns true if the there was an error opening the database connection; otherwise returns false. .SH "QSqlError QSqlDriver::lastError () const" Returns a QSqlError object which contains information about the last error that occurred on the database. .SH "TQString QSqlDriver::nullText () const\fC [virtual]\fR" @@ -179,7 +179,7 @@ Returns a string representation of the NULL value for the database. This is used .SH "bool QSqlDriver::open ( const TQString & db, const TQString & user = TQString::null, const TQString & password = TQString::null, const TQString & host = TQString::null, int port = -1 )\fC [pure virtual]\fR" Derived classes must reimplement this abstract virtual function in order to open a database connection on database \fIdb\fR, using user name \fIuser\fR, password \fIpassword\fR, host \fIhost\fR and port \fIport\fR. .PP -The function \fImust\fR return TRUE on success and FALSE on failure. +The function \fImust\fR return true on success and false on failure. .PP See also setOpen(). .SH "bool QSqlDriver::open ( const TQString & db, const TQString & user, const TQString & password, const TQString & host, int port, const TQString & connOpts )" @@ -187,7 +187,7 @@ This is an overloaded member function, provided for convenience. It behaves esse .PP Open a database connection on database \fIdb\fR, using user name \fIuser\fR, password \fIpassword\fR, host \fIhost\fR, port \fIport\fR and connection options \fIconnOpts\fR. .PP -Returns TRUE on success and FALSE on failure. +Returns true on success and false on failure. .PP See also setOpen(). .SH "QSqlIndex QSqlDriver::primaryIndex ( const TQString & tableName ) const\fC [virtual]\fR" @@ -205,7 +205,7 @@ This is an overloaded member function, provided for convenience. It behaves esse .PP Returns a QSqlRecordInfo object with meta data for the QSqlQuery \fIquery\fR. Note that this overloaded function may return less information than the recordInfo() function which takes the name of a table as parameter. .SH "bool QSqlDriver::rollbackTransaction ()\fC [virtual]\fR" -Protected function which derived classes can reimplement to rollback a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE. +Protected function which derived classes can reimplement to rollback a transaction. If successful, return true, otherwise return false. The default implementation returns false. .PP See also beginTransaction() and commitTransaction(). .SH "void QSqlDriver::setLastError ( const QSqlError & e )\fC [virtual protected]\fR" @@ -217,7 +217,7 @@ Protected function which sets the open state of the database to \fIo\fR. Derived .PP See also open() and setOpenError(). .SH "void QSqlDriver::setOpenError ( bool e )\fC [virtual protected]\fR" -Protected function which sets the open error state of the database to \fIe\fR. Derived classes can use this function to report the status of open(). Note that if \fIe\fR is TRUE the open state of the database is set to closed (i.e. isOpen() returns FALSE). +Protected function which sets the open error state of the database to \fIe\fR. Derived classes can use this function to report the status of open(). Note that if \fIe\fR is true the open state of the database is set to closed (i.e. isOpen() returns false). .PP See also open(). .SH "QStringList QSqlDriver::tables ( const TQString & tableType ) const\fC [virtual]\fR" |
