diff options
Diffstat (limited to 'src/sql/tqsqlfield.cpp')
| -rw-r--r-- | src/sql/tqsqlfield.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/sql/tqsqlfield.cpp b/src/sql/tqsqlfield.cpp index 7a99de333..b87f0d570 100644 --- a/src/sql/tqsqlfield.cpp +++ b/src/sql/tqsqlfield.cpp @@ -99,7 +99,7 @@ */ TQSqlField::TQSqlField( const TQString& fieldName, TQVariant::Type type ) - : nm(fieldName), ro(FALSE), nul(FALSE) + : nm(fieldName), ro(false), nul(false) { d = new TQSqlFieldPrivate(); d->type = type; @@ -132,8 +132,8 @@ TQSqlField& TQSqlField::operator=( const TQSqlField& other ) } /*! - Returns TRUE if the field is equal to \a other; otherwise returns - FALSE. Fields are considered equal when the following field + Returns true if the field is equal to \a other; otherwise returns + false. Fields are considered equal when the following field properties are the same: \list @@ -171,7 +171,7 @@ TQSqlField::~TQSqlField() /*! Sets the value of the field to \a value. If the field is read-only - (isReadOnly() returns TRUE), nothing happens. If the data type of + (isReadOnly() returns true), nothing happens. If the data type of \a value differs from the field's current data type, an attempt is made to cast it to the proper type. This preserves the data type of the field in the case of assignment, e.g. a TQString to an @@ -199,14 +199,14 @@ void TQSqlField::setValue( const TQVariant& value ) val = value; if ( value.isNull() ) - nul = TRUE; + nul = true; else nul = val.type() == TQVariant::Invalid; } /*! Clears the value of the field. If the field is read-only, nothing - happens. If \a nullify is TRUE (the default), the field is set to + happens. If \a nullify is true (the default), the field is set to NULL. */ @@ -218,7 +218,7 @@ void TQSqlField::clear( bool nullify ) v.cast( type() ); val = v; if ( nullify ) - nul = TRUE; + nul = true; } /*! @@ -243,7 +243,7 @@ void TQSqlField::setName( const TQString& name ) void TQSqlField::setNull() { - clear( TRUE ); + clear( true ); } /*! @@ -277,15 +277,15 @@ void TQSqlField::setReadOnly( bool readOnly ) /*! \fn bool TQSqlField::isReadOnly() const - Returns TRUE if the field's value is read only; otherwise returns - FALSE. + Returns true if the field's value is read only; otherwise returns + false. */ /*! \fn bool TQSqlField::isNull() const - Returns TRUE if the field is currently NULL; otherwise returns - FALSE. + Returns true if the field is currently NULL; otherwise returns + false. */ @@ -339,12 +339,12 @@ struct TQSqlFieldInfoPrivate no default value or it cannot be determined. \row \i \a typeID \i the internal typeID of the database system (only useful for low-level programming). 0 if unknown. - \row \i \a generated \i TRUE indicates that this field should be + \row \i \a generated \i true indicates that this field should be included in auto-generated SQL statments, e.g. in TQSqlCursor. - \row \i \a trim \i TRUE indicates that widgets should remove + \row \i \a trim \i true indicates that widgets should remove trailing whitespace from character fields. This does not affect the field value but only its representation inside widgets. - \row \i \a calculated \i TRUE indicates that the value of this + \row \i \a calculated \i true indicates that the value of this field is calculated. The value of calculated fields can by modified by subclassing TQSqlCursor and overriding TQSqlCursor::calculateField(). @@ -384,7 +384,7 @@ TQSqlFieldInfo::TQSqlFieldInfo( const TQSqlFieldInfo & other ) /*! Creates a TQSqlFieldInfo object with the type and the name of the - TQSqlField \a other. If \a generated is TRUE this field will be + TQSqlField \a other. If \a generated is true this field will be included in auto-generated SQL statments, e.g. in TQSqlCursor. */ TQSqlFieldInfo::TQSqlFieldInfo( const TQSqlField & other, bool generated ) @@ -397,8 +397,8 @@ TQSqlFieldInfo::TQSqlFieldInfo( const TQSqlField & other, bool generated ) d->prec = -1; d->typeID = 0; d->generated = generated; - d->trim = FALSE; - d->calculated = FALSE; + d->trim = false; + d->calculated = false; } /*! @@ -420,8 +420,8 @@ TQSqlFieldInfo& TQSqlFieldInfo::operator=( const TQSqlFieldInfo& other ) } /*! - Returns TRUE if this fieldinfo is equal to \a f; otherwise returns - FALSE. + Returns true if this fieldinfo is equal to \a f; otherwise returns + false. Two field infos are considered equal if all their attributes match. @@ -506,8 +506,8 @@ int TQSqlFieldInfo::typeID() const { return d->typeID; } /*! - Returns TRUE if the field should be included in auto-generated - SQL statments, e.g. in TQSqlCursor; otherwise returns FALSE. + Returns true if the field should be included in auto-generated + SQL statments, e.g. in TQSqlCursor; otherwise returns false. \sa setGenerated() */ @@ -515,8 +515,8 @@ bool TQSqlFieldInfo::isGenerated() const { return d->generated; } /*! - Returns TRUE if trailing whitespace should be removed from - character fields; otherwise returns FALSE. + Returns true if trailing whitespace should be removed from + character fields; otherwise returns false. \sa setTrim() */ @@ -524,7 +524,7 @@ bool TQSqlFieldInfo::isTrim() const { return d->trim; } /*! - Returns TRUE if the field is calculated; otherwise returns FALSE. + Returns true if the field is calculated; otherwise returns false. \sa setCalculated() */ @@ -532,7 +532,7 @@ bool TQSqlFieldInfo::isCalculated() const { return d->calculated; } /*! - If \a trim is TRUE widgets should remove trailing whitespace from + If \a trim is true widgets should remove trailing whitespace from character fields. This does not affect the field value but only its representation inside widgets. @@ -542,7 +542,7 @@ void TQSqlFieldInfo::setTrim( bool trim ) { d->trim = trim; } /*! - \a gen set to FALSE indicates that this field should not appear + \a gen set to false indicates that this field should not appear in auto-generated SQL statements (for example in TQSqlCursor). \sa isGenerated() @@ -551,7 +551,7 @@ void TQSqlFieldInfo::setGenerated( bool gen ) { d->generated = gen; } /*! - \a calc set to TRUE indicates that this field is a calculated + \a calc set to true indicates that this field is a calculated field. The value of calculated fields can by modified by subclassing TQSqlCursor and overriding TQSqlCursor::calculateField(). |
