diff options
Diffstat (limited to 'doc/html/sql-overview-subclass3-main-cpp.html')
-rw-r--r-- | doc/html/sql-overview-subclass3-main-cpp.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/sql-overview-subclass3-main-cpp.html b/doc/html/sql-overview-subclass3-main-cpp.html index b53d3a68a..f63ae8c20 100644 --- a/doc/html/sql-overview-subclass3-main-cpp.html +++ b/doc/html/sql-overview-subclass3-main-cpp.html @@ -43,24 +43,24 @@ body { background: #ffffff; color: black; } *****************************************************************************/ #include "main.h" -#include <<a href="qdatatable-h.html">ntqdatatable.h</a>> +#include <<a href="tqdatatable-h.html">tqdatatable.h</a>> <a name="f23"></a>InvoiceItemCursor::InvoiceItemCursor() : - <a href="ntqsqlcursor.html">TQSqlCursor</a>( "invoiceitem" ) + <a href="tqsqlcursor.html">TQSqlCursor</a>( "invoiceitem" ) { - <a href="qsqlfieldinfo.html">TQSqlFieldInfo</a> productName( "productname", TQVariant::String ); - <a href="ntqsqlcursor.html#append">append</a>( productName ); - <a href="ntqsqlcursor.html#setCalculated">setCalculated</a>( productName.<a href="qsqlfieldinfo.html#name">name</a>(), TRUE ); + <a href="tqsqlfieldinfo.html">TQSqlFieldInfo</a> productName( "productname", TQVariant::String ); + <a href="tqsqlcursor.html#append">append</a>( productName ); + <a href="tqsqlcursor.html#setCalculated">setCalculated</a>( productName.<a href="tqsqlfieldinfo.html#name">name</a>(), TRUE ); } -TQVariant InvoiceItemCursor::<a href="ntqsqlcursor.html#calculateField">calculateField</a>( const <a href="ntqstring.html">TQString</a> & name ) +TQVariant InvoiceItemCursor::<a href="tqsqlcursor.html#calculateField">calculateField</a>( const <a href="ntqstring.html">TQString</a> & name ) { if ( name == "productname" ) { - <a href="ntqsqlquery.html">TQSqlQuery</a> query( "SELECT name FROM prices WHERE id=" + - <a href="ntqsqlrecord.html#field">field</a>( "pricesid" )->value().toString() ); - if ( query.<a href="ntqsqlquery.html#next">next</a>() ) - return query.<a href="ntqsqlquery.html#value">value</a>( 0 ); + <a href="tqsqlquery.html">TQSqlQuery</a> query( "SELECT name FROM prices WHERE id=" + + <a href="tqsqlrecord.html#field">field</a>( "pricesid" )->value().toString() ); + if ( query.<a href="tqsqlquery.html#next">next</a>() ) + return query.<a href="tqsqlquery.html#value">value</a>( 0 ); } return TQVariant( TQString::null ); @@ -74,15 +74,15 @@ int main( int argc, char *argv[] ) if ( createConnections() ) { InvoiceItemCursor invoiceItemCursor; - <a href="ntqdatatable.html">TQDataTable</a> *invoiceItemTable = new <a href="ntqdatatable.html">TQDataTable</a>( &invoiceItemCursor ); + <a href="tqdatatable.html">TQDataTable</a> *invoiceItemTable = new <a href="tqdatatable.html">TQDataTable</a>( &invoiceItemCursor ); app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( invoiceItemTable ); - invoiceItemTable-><a href="ntqdatatable.html#addColumn">addColumn</a>( "productname", "Product" ); - invoiceItemTable-><a href="ntqdatatable.html#addColumn">addColumn</a>( "quantity", "Quantity" ); - invoiceItemTable-><a href="ntqdatatable.html#addColumn">addColumn</a>( "paiddate", "Paid" ); + invoiceItemTable-><a href="tqdatatable.html#addColumn">addColumn</a>( "productname", "Product" ); + invoiceItemTable-><a href="tqdatatable.html#addColumn">addColumn</a>( "quantity", "Quantity" ); + invoiceItemTable-><a href="tqdatatable.html#addColumn">addColumn</a>( "paiddate", "Paid" ); - invoiceItemTable-><a href="ntqdatatable.html#refresh">refresh</a>(); + invoiceItemTable-><a href="tqdatatable.html#refresh">refresh</a>(); invoiceItemTable-><a href="ntqwidget.html#show">show</a>(); return app.<a href="ntqapplication.html#exec">exec</a>(); |