summaryrefslogtreecommitdiffstats
path: root/doc/html/sql.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/sql.html')
-rw-r--r--doc/html/sql.html44
1 files changed, 22 insertions, 22 deletions
diff --git a/doc/html/sql.html b/doc/html/sql.html
index 4b170081f..a88b8cbf7 100644
--- a/doc/html/sql.html
+++ b/doc/html/sql.html
@@ -1024,16 +1024,16 @@ the code below can be automatically generated by <a href="designer-manual.html">
<a name="8-2-1"></a><p>
<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
- #include &lt;<a href="qdialog-h.html">ntqdialog.h</a>&gt;
+ #include &lt;<a href="tqdialog-h.html">tqdialog.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
- #include &lt;<a href="qlineedit-h.html">ntqlineedit.h</a>&gt;
+ #include &lt;<a href="tqlineedit-h.html">tqlineedit.h</a>&gt;
#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
#include &lt;<a href="tqsqlcursor-h.html">tqsqlcursor.h</a>&gt;
#include &lt;<a href="tqsqlform-h.html">tqsqlform.h</a>&gt;
#include "../connection.h"
- class FormDialog : public <a href="ntqdialog.html">TQDialog</a>
+ class FormDialog : public <a href="tqdialog.html">TQDialog</a>
{
public:
FormDialog();
@@ -1046,7 +1046,7 @@ the code below can be automatically generated by <a href="designer-manual.html">
<a href="tqlabel.html">TQLabel</a> *surnameLabel = new <a href="tqlabel.html">TQLabel</a>( "Surname:", this );
<a href="tqlabel.html">TQLabel</a> *surnameDisplay = new <a href="tqlabel.html">TQLabel</a>( this );
<a href="tqlabel.html">TQLabel</a> *salaryLabel = new <a href="tqlabel.html">TQLabel</a>( "Salary:", this );
- <a href="ntqlineedit.html">TQLineEdit</a> *salaryEdit = new <a href="ntqlineedit.html">TQLineEdit</a>( this );
+ <a href="tqlineedit.html">TQLineEdit</a> *salaryEdit = new <a href="tqlineedit.html">TQLineEdit</a>( this );
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this );
<a name="x2221"></a> grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( forenameLabel, 0, 0 );
@@ -1076,7 +1076,7 @@ the code below can be automatically generated by <a href="designer-manual.html">
if ( ! createConnections() ) return 1;
FormDialog *formDialog = new FormDialog();
- <a name="x2220"></a> formDialog-&gt;<a href="ntqdialog.html#show">show</a>();
+ <a name="x2220"></a> formDialog-&gt;<a href="tqdialog.html#show">show</a>();
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( formDialog );
return app.<a href="ntqapplication.html#exec">exec</a>();
@@ -1086,8 +1086,8 @@ the code below can be automatically generated by <a href="designer-manual.html">
</blockquote><p> We include the header files for the widgets that we need. We also
include <a href="tqsqldatabase-h.html">tqsqldatabase.h</a> and <a href="tqsqlcursor-h.html">tqsqlcursor.h</a> as usual, but we now add
<a href="tqsqlform-h.html">tqsqlform.h</a>.
-<p> The form will be presented as a dialog so we subclass <a href="ntqdialog.html">TQDialog</a> with
-our own FormDialog class. We use a <a href="ntqlineedit.html">TQLineEdit</a> for the salary so that
+<p> The form will be presented as a dialog so we subclass <a href="tqdialog.html">TQDialog</a> with
+our own FormDialog class. We use a <a href="tqlineedit.html">TQLineEdit</a> for the salary so that
the user can change it. All the widgets are laid out using a grid.
<p> We create a cursor on the staff table, select all records and move to
the first record.
@@ -1115,7 +1115,7 @@ view of a record:
differences.
<p>
-<pre> class FormDialog : public <a href="ntqdialog.html">TQDialog</a>
+<pre> class FormDialog : public <a href="tqdialog.html">TQDialog</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
@@ -1142,15 +1142,15 @@ confirm their update. We also hold pointers to the <a href="tqsqlcursor.html">TQ
right pad the fields are removed when the fields are retrieved.
<p> Properties that we might wish to apply to fields, such as alignment
and validation are achieved in the conventional way, for example, by
-calling <a href="ntqlineedit.html#setAlignment">TQLineEdit::setAlignment</a>() and <a href="ntqlineedit.html#setValidator">TQLineEdit::setValidator</a>().
-<p> <pre> <a href="ntqlineedit.html">TQLineEdit</a> *forenameEdit = new <a href="ntqlineedit.html">TQLineEdit</a>( this );
+calling <a href="tqlineedit.html#setAlignment">TQLineEdit::setAlignment</a>() and <a href="tqlineedit.html#setValidator">TQLineEdit::setValidator</a>().
+<p> <pre> <a href="tqlineedit.html">TQLineEdit</a> *forenameEdit = new <a href="tqlineedit.html">TQLineEdit</a>( this );
</pre>
-<p> <pre> <a href="ntqpushbutton.html">TQPushButton</a> *saveButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Save", this );
+<p> <pre> <a href="tqpushbutton.html">TQPushButton</a> *saveButton = new <a href="tqpushbutton.html">TQPushButton</a>( "&amp;Save", this );
<a href="tqobject.html#connect">connect</a>( saveButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(save()) );
</pre>
<p> The FormDialog constructor is similar to the one in the previous
example. We have changed the forename and surname widgets to
-<a href="ntqlineedit.html">TQLineEdit</a>s to make them editable and have added a <a href="ntqpushbutton.html">TQPushButton</a>
+<a href="tqlineedit.html">TQLineEdit</a>s to make them editable and have added a <a href="tqpushbutton.html">TQPushButton</a>
the user can click to save their updates.
<p> <pre> <a name="x2230"></a> grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( saveButton, 3, 0 );
</pre>
@@ -1171,7 +1171,7 @@ cursor's update buffer.
sqlForm-&gt;<a href="tqsqlform.html#insert">insert</a>( salaryEdit, "salary" );
<a name="x2232"></a> sqlForm-&gt;<a href="tqsqlform.html#readFields">readFields</a>();
</pre>
-<p> Now we link the buffer's fields to the <a href="ntqlineedit.html">TQLineEdit</a> controls. (In the
+<p> Now we link the buffer's fields to the <a href="tqlineedit.html">TQLineEdit</a> controls. (In the
previous example we linked the cursor's fields.) The edit controls are
populated by the readFields() call as before.
<p> <pre> FormDialog::~FormDialog()
@@ -1214,7 +1214,7 @@ data.
we will only cover the differences here. The full source is in <a href="sql-overview-custom1-main-h.html">sql/overview/custom1/main.h</a> and <a href="sql-overview-custom1-main-cpp.html">sql/overview/custom1/main.cpp</a>
<p>
-<pre> class CustomEdit : public <a href="ntqlineedit.html">TQLineEdit</a>
+<pre> class CustomEdit : public <a href="tqlineedit.html">TQLineEdit</a>
{
TQ_OBJECT
TQ_PROPERTY( TQString upperLine READ upperLine WRITE setUpperLine )
@@ -1228,7 +1228,7 @@ we will only cover the differences here. The full source is in <a href="sql-over
<a href="tqstring.html">TQString</a> upperLineText;
};
</pre>
-<p> We've created a simple subclass of <a href="ntqlineedit.html">TQLineEdit</a> and added a property,
+<p> We've created a simple subclass of <a href="tqlineedit.html">TQLineEdit</a> and added a property,
upperLineText, which will hold an uppercase version of the text. We
also created a slot, changed().
<p> <pre> <a href="tqsqlpropertymap.html">TQSqlPropertyMap</a> *propMap;
@@ -1238,9 +1238,9 @@ to our FormDialog's private data.
<p>
<pre> CustomEdit::CustomEdit( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) :
- <a href="ntqlineedit.html">TQLineEdit</a>( parent, name )
+ <a href="tqlineedit.html">TQLineEdit</a>( parent, name )
{
- <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL(<a href="ntqlineedit.html#textChanged">textChanged</a>(const <a href="tqstring.html">TQString</a> &amp;)),
+ <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL(<a href="tqlineedit.html#textChanged">textChanged</a>(const <a href="tqstring.html">TQString</a> &amp;)),
this, TQ_SLOT(changed(const <a href="tqstring.html">TQString</a> &amp;)) );
}
</pre>
@@ -1268,7 +1268,7 @@ CustomEdit instances directly to database fields.
<p> <pre> CustomEdit *surnameEdit = new CustomEdit( this );
</pre>
<p> We use the same FormDialog as we did before, but this time replace two
-of the <a href="ntqlineedit.html">TQLineEdit</a> widgets with our own CustomEdit widgets.
+of the <a href="tqlineedit.html">TQLineEdit</a> widgets with our own CustomEdit widgets.
<p> Laying out the grid and setting up the cursor is the same as before.
<p> <pre> propMap = new <a href="tqsqlpropertymap.html">TQSqlPropertyMap</a>;
<a name="x2239"></a><a name="x2235"></a> propMap-&gt;<a href="tqsqlpropertymap.html#insert">insert</a>( forenameEdit-&gt;<a href="tqobject.html#className">className</a>(), "upperLine" );
@@ -1291,11 +1291,11 @@ our CustomEdit widget.
</h4>
<a name="8-3-1"></a><p> We must reimpliment <a href="tqsqleditorfactory.html">TQSqlEditorFactory</a> to use custom editor widgets in
tables. In the following example we will create a custom editor based
-on <a href="ntqcombobox.html">TQComboBox</a> and a TQSqlEditorFactory subclass to show how a <a href="tqdatatable.html">TQDataTable</a>
+on <a href="tqcombobox.html">TQComboBox</a> and a TQSqlEditorFactory subclass to show how a <a href="tqdatatable.html">TQDataTable</a>
can use a custom editor.
<p>
-<pre> class StatusPicker : public <a href="ntqcombobox.html">TQComboBox</a>
+<pre> class StatusPicker : public <a href="tqcombobox.html">TQComboBox</a>
{
TQ_OBJECT
TQ_PROPERTY( int statusid READ statusId WRITE setStatusId )
@@ -1324,14 +1324,14 @@ function since that is the only function we need to reimplement.
<p>
<pre> StatusPicker::StatusPicker( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="ntqcombobox.html">TQComboBox</a>( parent, name )
+ : <a href="tqcombobox.html">TQComboBox</a>( parent, name )
{
<a href="tqsqlcursor.html">TQSqlCursor</a> cur( "status" );
<a name="x2242"></a><a name="x2241"></a> cur.<a href="tqsqlcursor.html#select">select</a>( cur.<a href="tqsqlcursor.html#index">index</a>( "name" ) );
int i = 0;
while ( cur.<a href="tqsqlquery.html#next">next</a>() ) {
- <a name="x2243"></a> <a href="ntqcombobox.html#insertItem">insertItem</a>( cur.<a href="tqsqlquery.html#value">value</a>( "name" ).toString(), i );
+ <a name="x2243"></a> <a href="tqcombobox.html#insertItem">insertItem</a>( cur.<a href="tqsqlquery.html#value">value</a>( "name" ).toString(), i );
index2id[i] = cur.<a href="tqsqlquery.html#value">value</a>( "id" ).toInt();
i++;
}