summaryrefslogtreecommitdiffstats
path: root/doc/html/sql-overview-table3-main-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/sql-overview-table3-main-cpp.html')
-rw-r--r--doc/html/sql-overview-table3-main-cpp.html58
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/sql-overview-table3-main-cpp.html b/doc/html/sql-overview-table3-main-cpp.html
index c4ca142e7..7fe78b0e0 100644
--- a/doc/html/sql-overview-table3-main-cpp.html
+++ b/doc/html/sql-overview-table3-main-cpp.html
@@ -43,18 +43,18 @@ body { background: #ffffff; color: black; }
*****************************************************************************/
#include "main.h"
-#include &lt;<a href="qdatatable-h.html">qdatatable.h</a>&gt;
+#include &lt;<a href="qdatatable-h.html">ntqdatatable.h</a>&gt;
-<a name="f9"></a>StatusPicker::StatusPicker( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="qcombobox.html">TQComboBox</a>( parent, name )
+<a name="f9"></a>StatusPicker::StatusPicker( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="ntqcombobox.html">TQComboBox</a>( parent, name )
{
- <a href="qsqlcursor.html">TQSqlCursor</a> cur( "status" );
- cur.<a href="qsqlcursor.html#select">select</a>( cur.<a href="qsqlcursor.html#index">index</a>( "name" ) );
+ <a href="ntqsqlcursor.html">TQSqlCursor</a> cur( "status" );
+ cur.<a href="ntqsqlcursor.html#select">select</a>( cur.<a href="ntqsqlcursor.html#index">index</a>( "name" ) );
int i = 0;
- while ( cur.<a href="qsqlquery.html#next">next</a>() ) {
- <a href="qcombobox.html#insertItem">insertItem</a>( cur.<a href="qsqlquery.html#value">value</a>( "name" ).toString(), i );
- index2id[i] = cur.<a href="qsqlquery.html#value">value</a>( "id" ).toInt();
+ while ( cur.<a href="ntqsqlquery.html#next">next</a>() ) {
+ <a href="ntqcombobox.html#insertItem">insertItem</a>( cur.<a href="ntqsqlquery.html#value">value</a>( "name" ).toString(), i );
+ index2id[i] = cur.<a href="ntqsqlquery.html#value">value</a>( "id" ).toInt();
i++;
}
}
@@ -79,11 +79,11 @@ void <a name="f11"></a>StatusPicker::setStatusId( int statusid )
-TQWidget *CustomSqlEditorFactory::<a href="qsqleditorfactory.html#createEditor">createEditor</a>(
- <a href="qwidget.html">TQWidget</a> *parent, const <a href="qsqlfield.html">TQSqlField</a> *field )
+TQWidget *CustomSqlEditorFactory::<a href="ntqsqleditorfactory.html#createEditor">createEditor</a>(
+ <a href="ntqwidget.html">TQWidget</a> *parent, const <a href="ntqsqlfield.html">TQSqlField</a> *field )
{
- if ( field-&gt;<a href="qsqlfield.html#name">name</a>() == "statusid" ) {
- <a href="qwidget.html">TQWidget</a> *editor = new StatusPicker( parent );
+ if ( field-&gt;<a href="ntqsqlfield.html#name">name</a>() == "statusid" ) {
+ <a href="ntqwidget.html">TQWidget</a> *editor = new StatusPicker( parent );
return editor;
}
@@ -93,32 +93,32 @@ TQWidget *CustomSqlEditorFactory::<a href="qsqleditorfactory.html#createEditor">
int main( int argc, char *argv[] )
{
- <a href="qapplication.html">TQApplication</a> app( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> app( argc, argv );
if ( createConnections() ) {
- <a href="qsqlcursor.html">TQSqlCursor</a> staffCursor( "staff" );
+ <a href="ntqsqlcursor.html">TQSqlCursor</a> staffCursor( "staff" );
- <a href="qdatatable.html">TQDataTable</a> *staffTable = new <a href="qdatatable.html">TQDataTable</a>( &amp;staffCursor );
- <a href="qsqlpropertymap.html">TQSqlPropertyMap</a> *propMap = new <a href="qsqlpropertymap.html">TQSqlPropertyMap</a>();
+ <a href="ntqdatatable.html">TQDataTable</a> *staffTable = new <a href="ntqdatatable.html">TQDataTable</a>( &amp;staffCursor );
+ <a href="ntqsqlpropertymap.html">TQSqlPropertyMap</a> *propMap = new <a href="ntqsqlpropertymap.html">TQSqlPropertyMap</a>();
CustomSqlEditorFactory *editorFactory = new CustomSqlEditorFactory();
- propMap-&gt;<a href="qsqlpropertymap.html#insert">insert</a>( "StatusPicker", "statusid" );
- staffTable-&gt;<a href="qdatatable.html#installPropertyMap">installPropertyMap</a>( propMap );
- staffTable-&gt;<a href="qdatatable.html#installEditorFactory">installEditorFactory</a>( editorFactory );
+ propMap-&gt;<a href="ntqsqlpropertymap.html#insert">insert</a>( "StatusPicker", "statusid" );
+ staffTable-&gt;<a href="ntqdatatable.html#installPropertyMap">installPropertyMap</a>( propMap );
+ staffTable-&gt;<a href="ntqdatatable.html#installEditorFactory">installEditorFactory</a>( editorFactory );
- app.<a href="qapplication.html#setMainWidget">setMainWidget</a>( staffTable );
+ app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( staffTable );
- staffTable-&gt;<a href="qdatatable.html#addColumn">addColumn</a>( "forename", "Forename" );
- staffTable-&gt;<a href="qdatatable.html#addColumn">addColumn</a>( "surname", "Surname" );
- staffTable-&gt;<a href="qdatatable.html#addColumn">addColumn</a>( "salary", "Annual Salary" );
- staffTable-&gt;<a href="qdatatable.html#addColumn">addColumn</a>( "statusid", "Status" );
+ staffTable-&gt;<a href="ntqdatatable.html#addColumn">addColumn</a>( "forename", "Forename" );
+ staffTable-&gt;<a href="ntqdatatable.html#addColumn">addColumn</a>( "surname", "Surname" );
+ staffTable-&gt;<a href="ntqdatatable.html#addColumn">addColumn</a>( "salary", "Annual Salary" );
+ staffTable-&gt;<a href="ntqdatatable.html#addColumn">addColumn</a>( "statusid", "Status" );
- <a href="qstringlist.html">TQStringList</a> order = TQStringList() &lt;&lt; "surname" &lt;&lt; "forename";
- staffTable-&gt;<a href="qdatatable.html#setSort">setSort</a>( order );
+ <a href="ntqstringlist.html">TQStringList</a> order = TQStringList() &lt;&lt; "surname" &lt;&lt; "forename";
+ staffTable-&gt;<a href="ntqdatatable.html#setSort">setSort</a>( order );
- staffTable-&gt;<a href="qdatatable.html#refresh">refresh</a>();
- staffTable-&gt;<a href="qwidget.html#show">show</a>();
+ staffTable-&gt;<a href="ntqdatatable.html#refresh">refresh</a>();
+ staffTable-&gt;<a href="ntqwidget.html#show">show</a>();
- return app.<a href="qapplication.html#exec">exec</a>();
+ return app.<a href="ntqapplication.html#exec">exec</a>();
}
return 1;