diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/sql-overview-table3-main-cpp.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/sql-overview-table3-main-cpp.html')
-rw-r--r-- | doc/html/sql-overview-table3-main-cpp.html | 58 |
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 <<a href="qdatatable-h.html">qdatatable.h</a>> +#include <<a href="qdatatable-h.html">ntqdatatable.h</a>> -<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-><a href="qsqlfield.html#name">name</a>() == "statusid" ) { - <a href="qwidget.html">TQWidget</a> *editor = new StatusPicker( parent ); + if ( field-><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>( &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>( &staffCursor ); + <a href="ntqsqlpropertymap.html">TQSqlPropertyMap</a> *propMap = new <a href="ntqsqlpropertymap.html">TQSqlPropertyMap</a>(); CustomSqlEditorFactory *editorFactory = new CustomSqlEditorFactory(); - propMap-><a href="qsqlpropertymap.html#insert">insert</a>( "StatusPicker", "statusid" ); - staffTable-><a href="qdatatable.html#installPropertyMap">installPropertyMap</a>( propMap ); - staffTable-><a href="qdatatable.html#installEditorFactory">installEditorFactory</a>( editorFactory ); + propMap-><a href="ntqsqlpropertymap.html#insert">insert</a>( "StatusPicker", "statusid" ); + staffTable-><a href="ntqdatatable.html#installPropertyMap">installPropertyMap</a>( propMap ); + staffTable-><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-><a href="qdatatable.html#addColumn">addColumn</a>( "forename", "Forename" ); - staffTable-><a href="qdatatable.html#addColumn">addColumn</a>( "surname", "Surname" ); - staffTable-><a href="qdatatable.html#addColumn">addColumn</a>( "salary", "Annual Salary" ); - staffTable-><a href="qdatatable.html#addColumn">addColumn</a>( "statusid", "Status" ); + staffTable-><a href="ntqdatatable.html#addColumn">addColumn</a>( "forename", "Forename" ); + staffTable-><a href="ntqdatatable.html#addColumn">addColumn</a>( "surname", "Surname" ); + staffTable-><a href="ntqdatatable.html#addColumn">addColumn</a>( "salary", "Annual Salary" ); + staffTable-><a href="ntqdatatable.html#addColumn">addColumn</a>( "statusid", "Status" ); - <a href="qstringlist.html">TQStringList</a> order = TQStringList() << "surname" << "forename"; - staffTable-><a href="qdatatable.html#setSort">setSort</a>( order ); + <a href="ntqstringlist.html">TQStringList</a> order = TQStringList() << "surname" << "forename"; + staffTable-><a href="ntqdatatable.html#setSort">setSort</a>( order ); - staffTable-><a href="qdatatable.html#refresh">refresh</a>(); - staffTable-><a href="qwidget.html#show">show</a>(); + staffTable-><a href="ntqdatatable.html#refresh">refresh</a>(); + staffTable-><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; |