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 ed5a06248..161e59d32 100644
--- a/doc/html/sql.html
+++ b/doc/html/sql.html
@@ -719,7 +719,7 @@ multiple fields. Ascending and descending order can be set using
<p>
<pre> <a href="tqsqlcursor.html">TQSqlCursor</a> cur( "staff" );
- <a href="ntqstringlist.html">TQStringList</a> fields = TQStringList() &lt;&lt; "surname" &lt;&lt; "forename";
+ <a href="tqstringlist.html">TQStringList</a> fields = TQStringList() &lt;&lt; "surname" &lt;&lt; "forename";
<a name="x2181"></a> <a href="tqsqlindex.html">TQSqlIndex</a> order = cur.<a href="tqsqlcursor.html#index">index</a>( fields );
<a name="x2182"></a> cur.<a href="tqsqlcursor.html#select">select</a>( order );
<a name="x2183"></a> while ( cur.<a href="tqsqlquery.html#next">next</a>() ) {
@@ -739,7 +739,7 @@ can create a filter based on an index.
<p>
<pre> <a href="tqsqlcursor.html">TQSqlCursor</a> cur( "staff" );
- <a href="ntqstringlist.html">TQStringList</a> fields = TQStringList() &lt;&lt; "id" &lt;&lt; "forename";
+ <a href="tqstringlist.html">TQStringList</a> fields = TQStringList() &lt;&lt; "id" &lt;&lt; "forename";
<a name="x2184"></a> <a href="tqsqlindex.html">TQSqlIndex</a> order = cur.<a href="tqsqlcursor.html#index">index</a>( fields );
<a href="tqsqlindex.html">TQSqlIndex</a> filter = cur.<a href="tqsqlcursor.html#index">index</a>( "surname" );
<a name="x2186"></a> cur.<a href="tqsqlrecord.html#setValue">setValue</a>( "surname", "Bloggs" );
@@ -766,10 +766,10 @@ setValue() to ensure that the value used is the one we want.
<a name="7-1-2"></a><p>
<pre> <a href="tqsqlcursor.html">TQSqlCursor</a> cur( "creditors" );
- <a href="ntqstringlist.html">TQStringList</a> orderFields = TQStringList() &lt;&lt; "surname" &lt;&lt; "forename";
+ <a href="tqstringlist.html">TQStringList</a> orderFields = TQStringList() &lt;&lt; "surname" &lt;&lt; "forename";
<a name="x2188"></a> <a href="tqsqlindex.html">TQSqlIndex</a> order = cur.<a href="tqsqlcursor.html#index">index</a>( orderFields );
- <a href="ntqstringlist.html">TQStringList</a> filterFields = TQStringList() &lt;&lt; "surname" &lt;&lt; "city";
+ <a href="tqstringlist.html">TQStringList</a> filterFields = TQStringList() &lt;&lt; "surname" &lt;&lt; "city";
<a href="tqsqlindex.html">TQSqlIndex</a> filter = cur.<a href="tqsqlcursor.html#index">index</a>( filterFields );
<a name="x2190"></a> cur.<a href="tqsqlrecord.html#setValue">setValue</a>( "surname", "Chirac" );
cur.<a href="tqsqlrecord.html#setValue">setValue</a>( "city", "Paris" );
@@ -778,9 +778,9 @@ setValue() to ensure that the value used is the one we want.
while ( cur.<a href="tqsqlquery.html#next">next</a>() ) {
<a name="x2191"></a> int id = cur.<a href="tqsqlquery.html#value">value</a>( "id" ).toInt();
- <a href="ntqstring.html">TQString</a> name = cur.<a href="tqsqlquery.html#value">value</a>( "forename" ).toString() + " " +
+ <a href="tqstring.html">TQString</a> name = cur.<a href="tqsqlquery.html#value">value</a>( "forename" ).toString() + " " +
cur.<a href="tqsqlquery.html#value">value</a>( "surname" ).toString();
- <a name="x2193"></a> <a href="ntqapplication.html#qDebug">tqDebug</a>( TQString::<a href="ntqstring.html#number">number</a>( id ) + ": " + name );
+ <a name="x2193"></a> <a href="ntqapplication.html#qDebug">tqDebug</a>( TQString::<a href="tqstring.html#number">number</a>( id ) + ": " + name );
}
</pre><blockquote><p align="center"><em> From <a href="sql-overview-extract-main-cpp.html">sql/overview/extract/main.cpp</a>
</em></p>
@@ -854,7 +854,7 @@ changes to the database are accurately reflected in the cursor.
<a name="7-2-1"></a><p>
<pre> <a href="tqsqlcursor.html">TQSqlCursor</a> cur( "prices" );
- <a href="ntqstringlist.html">TQStringList</a> names = TQStringList() &lt;&lt;
+ <a href="tqstringlist.html">TQStringList</a> names = TQStringList() &lt;&lt;
"Screwdriver" &lt;&lt; "Hammer" &lt;&lt; "Wrench" &lt;&lt; "Saw";
int id = 20;
<a name="x2197"></a> for ( TQStringList::Iterator name = names.<a href="tqvaluelist.html#begin">begin</a>();
@@ -994,7 +994,7 @@ function.
staffTable-&gt;<a href="tqdatatable.html#addColumn">addColumn</a>( "surname", "Surname" );
staffTable-&gt;<a href="tqdatatable.html#addColumn">addColumn</a>( "salary", "Annual Salary" );
- <a href="ntqstringlist.html">TQStringList</a> order = TQStringList() &lt;&lt; "surname" &lt;&lt; "forename";
+ <a href="tqstringlist.html">TQStringList</a> order = TQStringList() &lt;&lt; "surname" &lt;&lt; "forename";
<a name="x2216"></a> staffTable-&gt;<a href="tqdatatable.html#setSort">setSort</a>( order );
<a name="x2215"></a> staffTable-&gt;<a href="tqdatatable.html#refresh">refresh</a>();
@@ -1220,12 +1220,12 @@ we will only cover the differences here. The full source is in <a href="sql-over
TQ_PROPERTY( TQString upperLine READ upperLine WRITE setUpperLine )
public:
CustomEdit( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
- <a href="ntqstring.html">TQString</a> upperLine() const;
- void setUpperLine( const <a href="ntqstring.html">TQString</a> &amp;line );
+ <a href="tqstring.html">TQString</a> upperLine() const;
+ void setUpperLine( const <a href="tqstring.html">TQString</a> &amp;line );
public slots:
- void changed( const <a href="ntqstring.html">TQString</a> &amp;line );
+ void changed( const <a href="tqstring.html">TQString</a> &amp;line );
private:
- <a href="ntqstring.html">TQString</a> upperLineText;
+ <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,
@@ -1240,21 +1240,21 @@ to our FormDialog's private data.
<pre> CustomEdit::CustomEdit( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) :
<a href="ntqlineedit.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="ntqstring.html">TQString</a> &amp;)),
- this, TQ_SLOT(changed(const <a href="ntqstring.html">TQString</a> &amp;)) );
+ <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;)),
+ this, TQ_SLOT(changed(const <a href="tqstring.html">TQString</a> &amp;)) );
}
</pre>
<p> In the CustomEdit constructor we use the TQLineEdit constructor and add
a connection between the textChanged signal and our own changed slot.
-<p> <pre> void CustomEdit::changed( const <a href="ntqstring.html">TQString</a> &amp;line )
+<p> <pre> void CustomEdit::changed( const <a href="tqstring.html">TQString</a> &amp;line )
{
setUpperLine( line );
}
</pre>
<p> The changed() slot calls our setUpperLine() function.
-<p> <pre> void CustomEdit::setUpperLine( const <a href="ntqstring.html">TQString</a> &amp;line )
+<p> <pre> void CustomEdit::setUpperLine( const <a href="tqstring.html">TQString</a> &amp;line )
{
- <a name="x2240"></a> upperLineText = line.<a href="ntqstring.html#upper">upper</a>();
+ <a name="x2240"></a> upperLineText = line.<a href="tqstring.html#upper">upper</a>();
setText( upperLineText );
}
</pre>
@@ -1400,7 +1400,7 @@ anything. We also declare the paintField function.
<a name="x2249"></a> if ( field-&gt;<a href="tqsqlfield.html#name">name</a>() == "statusid" ) {
<a href="tqsqlquery.html">TQSqlQuery</a> query( "SELECT name FROM status WHERE id=" +
<a name="x2250"></a> field-&gt;<a href="tqsqlfield.html#value">value</a>().toString() );
- <a href="ntqstring.html">TQString</a> text;
+ <a href="tqstring.html">TQString</a> text;
if ( query.<a href="tqsqlquery.html#next">next</a>() ) {
<a name="x2252"></a> text = query.<a href="tqsqlquery.html#value">value</a>( 0 ).toString();
}
@@ -1493,7 +1493,7 @@ an InvoiceItemCursor instead of a generic TQSqlCursor.
<p>
<pre> protected:
- <a href="ntqvariant.html">TQVariant</a> calculateField( const <a href="ntqstring.html">TQString</a> &amp; name );
+ <a href="ntqvariant.html">TQVariant</a> calculateField( const <a href="tqstring.html">TQString</a> &amp; name );
</pre><blockquote><p align="center"><em> From <a href="sql-overview-subclass3-main-h.html">sql/overview/subclass3/main.h</a>
</em></p>
</blockquote><p> The change in the header file is minimal: we simply add the signature
@@ -1508,7 +1508,7 @@ of the calculateField() function since we will be reimplementing it.
<a name="x2260"></a> <a href="tqsqlcursor.html#setCalculated">setCalculated</a>( productName.<a href="tqsqlfieldinfo.html#name">name</a>(), TRUE );
}
- <a name="x2259"></a>TQVariant InvoiceItemCursor::<a href="tqsqlcursor.html#calculateField">calculateField</a>( const <a href="ntqstring.html">TQString</a> &amp; name )
+ <a name="x2259"></a>TQVariant InvoiceItemCursor::<a href="tqsqlcursor.html#calculateField">calculateField</a>( const <a href="tqstring.html">TQString</a> &amp; name )
{
if ( name == "productname" ) {
<a href="tqsqlquery.html">TQSqlQuery</a> query( "SELECT name FROM prices WHERE id=" +
@@ -1517,7 +1517,7 @@ of the calculateField() function since we will be reimplementing it.
<a name="x2262"></a> return query.<a href="tqsqlquery.html#value">value</a>( 0 );
}
- return TQVariant( <a href="ntqstring.html#TQString-null">TQString::null</a> );
+ return TQVariant( <a href="tqstring.html#TQString-null">TQString::null</a> );
}
</pre><blockquote><p align="center"><em> From <a href="sql-overview-subclass3-main-cpp.html">sql/overview/subclass3/main.cpp</a>
</em></p>
@@ -1564,7 +1564,7 @@ function require some simple expansion. We'll look at each in turn.
</blockquote><p> We create two extra fields, price and cost, and append them to the
cursor's set of fields. Both are registered as calculated fields with
calls to setCalculated().
-<p> <pre> <a name="x2263"></a>TQVariant InvoiceItemCursor::<a href="tqsqlcursor.html#calculateField">calculateField</a>( const <a href="ntqstring.html">TQString</a> &amp; name )
+<p> <pre> <a name="x2263"></a>TQVariant InvoiceItemCursor::<a href="tqsqlcursor.html#calculateField">calculateField</a>( const <a href="tqstring.html">TQString</a> &amp; name )
{
if ( name == "productname" ) {