summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqsqlform.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-28 10:17:01 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-28 10:17:01 +0900
commit5fffa30386502b5423e45c2ed5e6af756b11c7b4 (patch)
treefa17e10b048e8e13433b861cbe98cf895b2324c7 /doc/man/man3/tqsqlform.3qt
parent04913ce7a46fd027856e83a96205fdc388742a19 (diff)
downloadtqt3-5fffa30386502b5423e45c2ed5e6af756b11c7b4.tar.gz
tqt3-5fffa30386502b5423e45c2ed5e6af756b11c7b4.zip
Rename nt* sql related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqsqlform.3qt')
-rw-r--r--doc/man/man3/tqsqlform.3qt82
1 files changed, 41 insertions, 41 deletions
diff --git a/doc/man/man3/tqsqlform.3qt b/doc/man/man3/tqsqlform.3qt
index aeaa3bef..3af3402e 100644
--- a/doc/man/man3/tqsqlform.3qt
+++ b/doc/man/man3/tqsqlform.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QSqlForm 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQSqlForm 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,9 +7,9 @@
.ad l
.nh
.SH NAME
-QSqlForm \- Creates and manages data entry forms tied to SQL databases
+TQSqlForm \- Creates and manages data entry forms tied to SQL databases
.SH SYNOPSIS
-\fC#include <ntqsqlform.h>\fR
+\fC#include <tqsqlform.h>\fR
.PP
Inherits TQObject.
.PP
@@ -19,7 +19,7 @@ Inherits TQObject.
.BI "\fBQSqlForm\fR ( TQObject * parent = 0, const char * name = 0 )"
.br
.ti -1c
-.BI "\fB~QSqlForm\fR ()"
+.BI "\fB~TQSqlForm\fR ()"
.br
.ti -1c
.BI "virtual void \fBinsert\fR ( TQWidget * widget, const TQString & field )"
@@ -34,16 +34,16 @@ Inherits TQObject.
.BI "TQWidget * \fBwidget\fR ( uint i ) const"
.br
.ti -1c
-.BI "QSqlField * \fBwidgetToField\fR ( TQWidget * widget ) const"
+.BI "TQSqlField * \fBwidgetToField\fR ( TQWidget * widget ) const"
.br
.ti -1c
-.BI "TQWidget * \fBfieldToWidget\fR ( QSqlField * field ) const"
+.BI "TQWidget * \fBfieldToWidget\fR ( TQSqlField * field ) const"
.br
.ti -1c
-.BI "void \fBinstallPropertyMap\fR ( QSqlPropertyMap * pmap )"
+.BI "void \fBinstallPropertyMap\fR ( TQSqlPropertyMap * pmap )"
.br
.ti -1c
-.BI "virtual void \fBsetRecord\fR ( QSqlRecord * buf )"
+.BI "virtual void \fBsetRecord\fR ( TQSqlRecord * buf )"
.br
.in -1c
.SS "Public Slots"
@@ -70,22 +70,22 @@ Inherits TQObject.
.SS "Protected Members"
.in +1c
.ti -1c
-.BI "virtual void \fBinsert\fR ( TQWidget * widget, QSqlField * field )"
+.BI "virtual void \fBinsert\fR ( TQWidget * widget, TQSqlField * field )"
.br
.ti -1c
.BI "virtual void \fBremove\fR ( TQWidget * widget )"
.br
.in -1c
.SH DESCRIPTION
-The QSqlForm class creates and manages data entry forms tied to SQL databases.
+The TQSqlForm class creates and manages data entry forms tied to SQL databases.
.PP
-Typical use of a QSqlForm consists of the following steps:
+Typical use of a TQSqlForm consists of the following steps:
.TP
Create the widgets you want to appear in the form.
.TP
Create a cursor and navigate to the record to be edited.
.TP
-Create the QSqlForm.
+Create the TQSqlForm.
.TP
Set the form's record buffer to the cursor's update buffer.
.TP
@@ -97,7 +97,7 @@ Display the form and let the user edit values etc.
.TP
Use writeFields() to update the database's field values with the values in the editor widgets.
.PP
-Note that a QSqlForm does not access the database directly, but most often via QSqlFields which are part of a QSqlCursor. A QSqlCursor::insert(), QSqlCursor::update() or QSqlCursor::del() call is needed to actually write values to the database.
+Note that a TQSqlForm does not access the database directly, but most often via TQSqlFields which are part of a TQSqlCursor. A TQSqlCursor::insert(), TQSqlCursor::update() or TQSqlCursor::del() call is needed to actually write values to the database.
.PP
Some sample code to initialize a form successfully:
.PP
@@ -105,9 +105,9 @@ Some sample code to initialize a form successfully:
.br
QLineEdit myEditor( this );
.br
- QSqlForm myForm( this );
+ TQSqlForm myForm( this );
.br
- QSqlCursor myCursor( "mytable" );
+ TQSqlCursor myCursor( "mytable" );
.br
.br
// Execute a query to make the cursor valid
@@ -150,76 +150,76 @@ Some sample code to initialize a form successfully:
.br
.fi
.PP
-If you want to use custom editors for displaying and editing data fields, you must install a custom QSqlPropertyMap. The form uses this object to get or set the value of a widget.
+If you want to use custom editors for displaying and editing data fields, you must install a custom TQSqlPropertyMap. The form uses this object to get or set the value of a widget.
.PP
Note that TQt Designer provides a visual means of creating data-aware forms.
.PP
-See also installPropertyMap(), QSqlPropertyMap, and Database Classes.
+See also installPropertyMap(), TQSqlPropertyMap, and Database Classes.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QSqlForm::QSqlForm ( TQObject * parent = 0, const char * name = 0 )"
-Constructs a QSqlForm with parent \fIparent\fR and called \fIname\fR.
-.SH "QSqlForm::~QSqlForm ()"
+.SH "TQSqlForm::TQSqlForm ( TQObject * parent = 0, const char * name = 0 )"
+Constructs a TQSqlForm with parent \fIparent\fR and called \fIname\fR.
+.SH "TQSqlForm::~TQSqlForm ()"
Destroys the object and frees any allocated resources.
-.SH "void QSqlForm::clear ()\fC [virtual slot]\fR"
+.SH "void TQSqlForm::clear ()\fC [virtual slot]\fR"
Removes every widget, and the fields they're mapped to, from the form.
-.SH "void QSqlForm::clearValues ( bool nullify = FALSE )\fC [virtual slot]\fR"
+.SH "void TQSqlForm::clearValues ( bool nullify = FALSE )\fC [virtual slot]\fR"
Clears the values in all the widgets, and the fields they are mapped to, in the form. If \fInullify\fR is TRUE (the default is FALSE), each field is also set to NULL.
-.SH "uint QSqlForm::count () const"
+.SH "uint TQSqlForm::count () const"
Returns the number of widgets in the form.
-.SH "TQWidget * QSqlForm::fieldToWidget ( QSqlField * field ) const"
+.SH "TQWidget * TQSqlForm::fieldToWidget ( TQSqlField * field ) const"
Returns the widget that field \fIfield\fR is mapped to.
-.SH "void QSqlForm::insert ( TQWidget * widget, const TQString & field )\fC [virtual]\fR"
+.SH "void TQSqlForm::insert ( TQWidget * widget, const TQString & field )\fC [virtual]\fR"
Inserts a \fIwidget\fR, and the name of the \fIfield\fR it is to be mapped to, into the form. To actually associate inserted widgets with an edit buffer, use setRecord().
.PP
See also setRecord().
.PP
Examples:
.)l sql/overview/form1/main.cpp and sql/overview/form2/main.cpp.
-.SH "void QSqlForm::insert ( TQWidget * widget, QSqlField * field )\fC [virtual protected]\fR"
+.SH "void TQSqlForm::insert ( TQWidget * widget, TQSqlField * field )\fC [virtual protected]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Inserts a \fIwidget\fR, and the \fIfield\fR it is to be mapped to, into the form.
-.SH "void QSqlForm::installPropertyMap ( QSqlPropertyMap * pmap )"
-Installs a custom QSqlPropertyMap. This is useful if you plan to create your own custom editor widgets.
+.SH "void TQSqlForm::installPropertyMap ( TQSqlPropertyMap * pmap )"
+Installs a custom TQSqlPropertyMap. This is useful if you plan to create your own custom editor widgets.
.PP
-QSqlForm takes ownership of \fIpmap\fR, so \fIpmap\fR is deleted when QSqlForm goes out of scope.
+TQSqlForm takes ownership of \fIpmap\fR, so \fIpmap\fR is deleted when TQSqlForm goes out of scope.
.PP
-See also QDataTable::installEditorFactory().
+See also TQDataTable::installEditorFactory().
.PP
Example: sql/overview/custom1/main.cpp.
-.SH "void QSqlForm::readField ( TQWidget * widget )\fC [virtual slot]\fR"
+.SH "void TQSqlForm::readField ( TQWidget * widget )\fC [virtual slot]\fR"
Updates the widget \fIwidget\fR with the value from the SQL field it is mapped to. Nothing happens if no SQL field is mapped to the \fIwidget\fR.
-.SH "void QSqlForm::readFields ()\fC [virtual slot]\fR"
+.SH "void TQSqlForm::readFields ()\fC [virtual slot]\fR"
Updates the widgets in the form with current values from the SQL fields they are mapped to.
.PP
Examples:
.)l sql/overview/form1/main.cpp and sql/overview/form2/main.cpp.
-.SH "void QSqlForm::remove ( TQWidget * widget )\fC [virtual protected]\fR"
+.SH "void TQSqlForm::remove ( TQWidget * widget )\fC [virtual protected]\fR"
Removes a \fIwidget\fR, and hence the field it's mapped to, from the form.
-.SH "void QSqlForm::remove ( const TQString & field )\fC [virtual]\fR"
+.SH "void TQSqlForm::remove ( const TQString & field )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Removes \fIfield\fR from the form.
-.SH "void QSqlForm::setRecord ( QSqlRecord * buf )\fC [virtual]\fR"
+.SH "void TQSqlForm::setRecord ( TQSqlRecord * buf )\fC [virtual]\fR"
Sets \fIbuf\fR as the record buffer for the form. To force the display of the data from \fIbuf\fR, use readFields().
.PP
See also readFields() and writeFields().
.PP
Examples:
.)l sql/overview/custom1/main.cpp, sql/overview/form1/main.cpp, and sql/overview/form2/main.cpp.
-.SH "TQWidget * QSqlForm::widget ( uint i ) const"
+.SH "TQWidget * TQSqlForm::widget ( uint i ) const"
Returns the \fIi\fR-th widget in the form. Useful for traversing the widgets in the form.
-.SH "QSqlField * QSqlForm::widgetToField ( TQWidget * widget ) const"
+.SH "TQSqlField * TQSqlForm::widgetToField ( TQWidget * widget ) const"
Returns the SQL field that widget \fIwidget\fR is mapped to.
-.SH "void QSqlForm::writeField ( TQWidget * widget )\fC [virtual slot]\fR"
+.SH "void TQSqlForm::writeField ( TQWidget * widget )\fC [virtual slot]\fR"
Updates the SQL field with the value from the \fIwidget\fR it is mapped to. Nothing happens if no SQL field is mapped to the \fIwidget\fR.
-.SH "void QSqlForm::writeFields ()\fC [virtual slot]\fR"
-Updates the SQL fields with values from the widgets they are mapped to. To actually update the database with the contents of the record buffer, use QSqlCursor::insert(), QSqlCursor::update() or QSqlCursor::del() as appropriate.
+.SH "void TQSqlForm::writeFields ()\fC [virtual slot]\fR"
+Updates the SQL fields with values from the widgets they are mapped to. To actually update the database with the contents of the record buffer, use TQSqlCursor::insert(), TQSqlCursor::update() or TQSqlCursor::del() as appropriate.
.PP
Example: sql/overview/form2/main.cpp.
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqsqlform.html
+.BR http://doc.trolltech.com/tqsqlform.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the