summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqsqlfield.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqsqlfield.3qt')
-rw-r--r--doc/man/man3/tqsqlfield.3qt24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/man/man3/tqsqlfield.3qt b/doc/man/man3/tqsqlfield.3qt
index fb6f2201..f3e34a9d 100644
--- a/doc/man/man3/tqsqlfield.3qt
+++ b/doc/man/man3/tqsqlfield.3qt
@@ -14,7 +14,7 @@ TQSqlField \- Manipulates the fields in SQL database tables and views
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBTQSqlField\fR ( const TQString & fieldName = TQString::null, QVariant::Type type = QVariant::Invalid )"
+.BI "\fBTQSqlField\fR ( const TQString & fieldName = TQString::null, TQVariant::Type type = TQVariant::Invalid )"
.br
.ti -1c
.BI "\fBTQSqlField\fR ( const TQSqlField & other )"
@@ -29,10 +29,10 @@ TQSqlField \- Manipulates the fields in SQL database tables and views
.BI "virtual \fB~TQSqlField\fR ()"
.br
.ti -1c
-.BI "virtual void \fBsetValue\fR ( const QVariant & value )"
+.BI "virtual void \fBsetValue\fR ( const TQVariant & value )"
.br
.ti -1c
-.BI "virtual QVariant \fBvalue\fR () const"
+.BI "virtual TQVariant \fBvalue\fR () const"
.br
.ti -1c
.BI "virtual void \fBsetName\fR ( const TQString & name )"
@@ -56,7 +56,7 @@ TQSqlField \- Manipulates the fields in SQL database tables and views
.BI "void \fBclear\fR ( bool nullify = TRUE )"
.br
.ti -1c
-.BI "QVariant::Type \fBtype\fR () const"
+.BI "TQVariant::Type \fBtype\fR () const"
.br
.in -1c
.SH DESCRIPTION
@@ -64,11 +64,11 @@ The TQSqlField class manipulates the fields in SQL database tables and views.
.PP
TQSqlField represents the characteristics of a single column in a database table or view, such as the data type and column name. A field also contains the value of the database column, which can be viewed or changed.
.PP
-Field data values are stored as QVariants. Using an incompatible type is not permitted. For example:
+Field data values are stored as TQVariants. Using an incompatible type is not permitted. For example:
.PP
.nf
.br
- TQSqlField f( "myfield", QVariant::Int );
+ TQSqlField f( "myfield", TQVariant::Int );
.br
f.setValue( TQPixmap() ); // will not work
.br
@@ -78,7 +78,7 @@ However, the field will attempt to cast certain data types to the field data typ
.PP
.nf
.br
- TQSqlField f( "myfield", QVariant::Int );
+ TQSqlField f( "myfield", TQVariant::Int );
.br
f.setValue( TQString("123") ); // casts TQString to int
.br
@@ -112,7 +112,7 @@ In practice we rarely need to extract a pointer to a field at all. The previous
.PP
See also Database Classes.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "TQSqlField::TQSqlField ( const TQString & fieldName = TQString::null, QVariant::Type type = QVariant::Invalid )"
+.SH "TQSqlField::TQSqlField ( const TQString & fieldName = TQString::null, TQVariant::Type type = TQVariant::Invalid )"
Constructs an empty field called \fIfieldName\fR of type \fItype\fR.
.SH "TQSqlField::TQSqlField ( const TQSqlField & other )"
Constructs a copy of \fIother\fR.
@@ -150,7 +150,7 @@ See also isReadOnly() and clear().
Sets the read only flag of the field's value to \fIreadOnly\fR.
.PP
See also setValue().
-.SH "void TQSqlField::setValue ( const QVariant & value )\fC [virtual]\fR"
+.SH "void TQSqlField::setValue ( const TQVariant & value )\fC [virtual]\fR"
Sets the value of the field to \fIvalue\fR. If the field is read-only (isReadOnly() returns TRUE), nothing happens. If the data type of \fIvalue\fR 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 integer data type. For example:
.PP
.nf
@@ -166,10 +166,10 @@ Sets the value of the field to \fIvalue\fR. If the field is read-only (isReadOnl
.fi
.PP
See also isReadOnly().
-.SH "QVariant::Type TQSqlField::type () const"
+.SH "TQVariant::Type TQSqlField::type () const"
Returns the field's type as stored in the database. Note that the actual value might have a different type, Numerical values that are too large to store in a long int or double are usually stored as strings to prevent precision loss.
-.SH "QVariant TQSqlField::value () const\fC [virtual]\fR"
-Returns the value of the field as a QVariant.
+.SH "TQVariant TQSqlField::value () const\fC [virtual]\fR"
+Returns the value of the field as a TQVariant.
.PP
Example: sql/overview/table4/main.cpp.