summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqvariant.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:38:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:43:03 +0900
commit6e4a70d41a2636ce99a1da7b6827ac5685ed3186 (patch)
treeb029ebf1d5be6d1ac0ee361e7bfb68a7dbed0eec /doc/man/man3/tqvariant.3qt
parent81ade129093a279e6537db25710583fd2bba9427 (diff)
downloadtqt-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/tqvariant.3qt')
-rw-r--r--doc/man/man3/tqvariant.3qt28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/man/man3/tqvariant.3qt b/doc/man/man3/tqvariant.3qt
index 5a8876570..02e2b7e66 100644
--- a/doc/man/man3/tqvariant.3qt
+++ b/doc/man/man3/tqvariant.3qt
@@ -463,7 +463,7 @@ QVariant also supports the notion of NULL values, where you have a defined type
.br
x.asInt();
.br
- // x.isNull() == TRUE, y.isNull() == TRUE, z.isNull() == FALSE
+ // x.isNull() == true, y.isNull() == true, z.isNull() == false
.br
.fi
.PP
@@ -857,7 +857,7 @@ Returns the variant's value as unsigned int reference.
.SH "TQ_ULLONG & QVariant::asULongLong ()"
Returns the variant's value as unsigned long long reference.
.SH "bool QVariant::canCast ( Type t ) const"
-Returns TRUE if the variant's type can be cast to the requested type, \fIt\fR. Such casting is done automatically when calling the toInt(), toBool(), ... or asInt(), asBool(), ... methods.
+Returns true if the variant's type can be cast to the requested type, \fIt\fR. Such casting is done automatically when calling the toInt(), toBool(), ... or asInt(), asBool(), ... methods.
.PP
The following casts are done automatically: <center>.nf
.TS
@@ -866,15 +866,15 @@ l - l. Type Automatically Cast To Bool Double, Int, UInt, LongLong, ULongLong, S
.fi
</center>
.SH "bool QVariant::cast ( Type t )"
-Casts the variant to the requested type. If the cast cannot be done, the variant is set to the default value of the requested type (e.g. an empty string if the requested type \fIt\fR is QVariant::String, an empty point array if the requested type \fIt\fR is QVariant::PointArray, etc). Returns TRUE if the current type of the variant was successfully cast; otherwise returns FALSE.
+Casts the variant to the requested type. If the cast cannot be done, the variant is set to the default value of the requested type (e.g. an empty string if the requested type \fIt\fR is QVariant::String, an empty point array if the requested type \fIt\fR is QVariant::PointArray, etc). Returns true if the current type of the variant was successfully cast; otherwise returns false.
.PP
See also canCast().
.SH "void QVariant::clear ()"
Convert this variant to type Invalid and free up any resources used.
.SH "bool QVariant::isNull () const"
-Returns TRUE if this is a NULL variant, FALSE otherwise.
+Returns true if this is a NULL variant, false otherwise.
.SH "bool QVariant::isValid () const"
-Returns TRUE if the storage type of this variant is not QVariant::Invalid; otherwise returns FALSE.
+Returns true if the storage type of this variant is not QVariant::Invalid; otherwise returns false.
.SH "QValueListConstIterator<QVariant> QVariant::listBegin () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
@@ -900,13 +900,13 @@ Converts the string representation of the storage type given in \fIname\fR, to i
.PP
If the string representation cannot be converted to any enum representation, the variant is set to Invalid.
.SH "bool QVariant::operator!= ( const QVariant & v ) const"
-Compares this QVariant with \fIv\fR and returns TRUE if they are not equal; otherwise returns FALSE.
+Compares this QVariant with \fIv\fR and returns true if they are not equal; otherwise returns false.
.SH "QVariant & QVariant::operator= ( const QVariant & variant )"
Assigns the value of the variant \fIvariant\fR to this variant.
.PP
This is a deep copy of the variant, but note that if the variant holds an explicitly shared type such as TQImage, a shallow copy is performed.
.SH "bool QVariant::operator== ( const QVariant & v ) const"
-Compares this QVariant with \fIv\fR and returns TRUE if they are equal; otherwise returns FALSE.
+Compares this QVariant with \fIv\fR and returns true if they are equal; otherwise returns false.
.SH "QValueListConstIterator<TQString> QVariant::stringListBegin () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
@@ -924,9 +924,9 @@ Returns the variant as a QBitmap if the variant has type() Bitmap; otherwise ret
.PP
See also asBitmap().
.SH "bool QVariant::toBool () const"
-Returns the variant as a bool if the variant can be cast to Bool; otherWise returns FALSE.
+Returns the variant as a bool if the variant can be cast to Bool; otherWise returns false.
.PP
-Returns TRUE if the variant has a numeric type and its value is non-zero, or if the variant has type String, ByteArray or CString and its lower-case content is not empty, "0" or "false"; otherwise returns FALSE.
+Returns true if the variant has a numeric type and its value is non-zero, or if the variant has type String, ByteArray or CString and its lower-case content is not empty, "0" or "false"; otherwise returns false.
.PP
See also asBool() and canCast().
.SH "const QBrush QVariant::toBrush () const"
@@ -968,7 +968,7 @@ See also asDateTime().
.SH "double QVariant::toDouble ( bool * ok = 0 ) const"
Returns the variant as a double if the variant can be cast to Double; otherwise returns 0.0.
.PP
-If \fIok\fR is non-null: \fI*ok\fR is set to TRUE if the value could be converted to a double; otherwise \fI*ok\fR is set to FALSE.
+If \fIok\fR is non-null: \fI*ok\fR is set to true if the value could be converted to a double; otherwise \fI*ok\fR is set to false.
.PP
See also asDouble() and canCast().
.SH "const QFont QVariant::toFont () const"
@@ -986,7 +986,7 @@ See also asImage().
.SH "int QVariant::toInt ( bool * ok = 0 ) const"
Returns the variant as an int if the variant can be cast to Int; otherwise returns 0.
.PP
-If \fIok\fR is non-null: \fI*ok\fR is set to TRUE if the value could be converted to an int; otherwise \fI*ok\fR is set to FALSE.
+If \fIok\fR is non-null: \fI*ok\fR is set to true if the value could be converted to an int; otherwise \fI*ok\fR is set to false.
.PP
See also asInt() and canCast().
.SH "const QKeySequence QVariant::toKeySequence () const"
@@ -1018,7 +1018,7 @@ See also asList().
.SH "TQ_LLONG QVariant::toLongLong ( bool * ok = 0 ) const"
Returns the variant as a long long int if the variant can be cast to LongLong; otherwise returns 0.
.PP
-If \fIok\fR is non-null: \fI*ok\fR is set to TRUE if the value could be converted to an int; otherwise \fI*ok\fR is set to FALSE.
+If \fIok\fR is non-null: \fI*ok\fR is set to true if the value could be converted to an int; otherwise \fI*ok\fR is set to false.
.PP
See also asLongLong() and canCast().
.SH "const QMap<TQString, QVariant> QVariant::toMap () const"
@@ -1112,13 +1112,13 @@ See also asTime().
.SH "uint QVariant::toUInt ( bool * ok = 0 ) const"
Returns the variant as an unsigned int if the variant can be cast to UInt; otherwise returns 0.
.PP
-If \fIok\fR is non-null: \fI*ok\fR is set to TRUE if the value could be converted to an unsigned int; otherwise \fI*ok\fR is set to FALSE.
+If \fIok\fR is non-null: \fI*ok\fR is set to true if the value could be converted to an unsigned int; otherwise \fI*ok\fR is set to false.
.PP
See also asUInt() and canCast().
.SH "TQ_ULLONG QVariant::toULongLong ( bool * ok = 0 ) const"
Returns the variant as as an unsigned long long int if the variant can be cast to ULongLong; otherwise returns 0.
.PP
-If \fIok\fR is non-null: \fI*ok\fR is set to TRUE if the value could be converted to an int; otherwise \fI*ok\fR is set to FALSE.
+If \fIok\fR is non-null: \fI*ok\fR is set to true if the value could be converted to an int; otherwise \fI*ok\fR is set to false.
.PP
See also asULongLong() and canCast().
.SH "Type QVariant::type () const"