diff options
Diffstat (limited to 'doc/html/sql-overview-order2-main-cpp.html')
-rw-r--r-- | doc/html/sql-overview-order2-main-cpp.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/sql-overview-order2-main-cpp.html b/doc/html/sql-overview-order2-main-cpp.html index dcbfad20..616ec0b3 100644 --- a/doc/html/sql-overview-order2-main-cpp.html +++ b/doc/html/sql-overview-order2-main-cpp.html @@ -42,26 +42,26 @@ body { background: #ffffff; color: black; } ** *****************************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qsqldatabase-h.html">qsqldatabase.h</a>> -#include <<a href="qsqlcursor-h.html">qsqlcursor.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qsqldatabase-h.html">ntqsqldatabase.h</a>> +#include <<a href="qsqlcursor-h.html">ntqsqlcursor.h</a>> #include "../connection.h" int main( int argc, char *argv[] ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv, FALSE ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE ); if ( createConnections() ) { - <a href="qsqlcursor.html">TQSqlCursor</a> cur( "staff" ); - <a href="qstringlist.html">TQStringList</a> fields = TQStringList() << "id" << "forename"; - <a href="qsqlindex.html">TQSqlIndex</a> order = cur.<a href="qsqlcursor.html#index">index</a>( fields ); - <a href="qsqlindex.html">TQSqlIndex</a> filter = cur.<a href="qsqlcursor.html#index">index</a>( "surname" ); - cur.<a href="qsqlrecord.html#setValue">setValue</a>( "surname", "Bloggs" ); - cur.<a href="qsqlcursor.html#select">select</a>( filter, order ); - while ( cur.<a href="qsqlquery.html#next">next</a>() ) { - <a href="qapplication.html#qDebug">qDebug</a>( cur.<a href="qsqlquery.html#value">value</a>( "id" ).toString() + ": " + - cur.<a href="qsqlquery.html#value">value</a>( "surname" ).toString() + " " + - cur.<a href="qsqlquery.html#value">value</a>( "forename" ).toString() ); + <a href="ntqsqlcursor.html">TQSqlCursor</a> cur( "staff" ); + <a href="ntqstringlist.html">TQStringList</a> fields = TQStringList() << "id" << "forename"; + <a href="ntqsqlindex.html">TQSqlIndex</a> order = cur.<a href="ntqsqlcursor.html#index">index</a>( fields ); + <a href="ntqsqlindex.html">TQSqlIndex</a> filter = cur.<a href="ntqsqlcursor.html#index">index</a>( "surname" ); + cur.<a href="ntqsqlrecord.html#setValue">setValue</a>( "surname", "Bloggs" ); + cur.<a href="ntqsqlcursor.html#select">select</a>( filter, order ); + while ( cur.<a href="ntqsqlquery.html#next">next</a>() ) { + <a href="ntqapplication.html#qDebug">qDebug</a>( cur.<a href="ntqsqlquery.html#value">value</a>( "id" ).toString() + ": " + + cur.<a href="ntqsqlquery.html#value">value</a>( "surname" ).toString() + " " + + cur.<a href="ntqsqlquery.html#value">value</a>( "forename" ).toString() ); } } |