From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/sql-overview-extract-main-cpp.html | 34 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'doc/html/sql-overview-extract-main-cpp.html') diff --git a/doc/html/sql-overview-extract-main-cpp.html b/doc/html/sql-overview-extract-main-cpp.html index 68bdc82ca..3d6408fde 100644 --- a/doc/html/sql-overview-extract-main-cpp.html +++ b/doc/html/sql-overview-extract-main-cpp.html @@ -42,33 +42,33 @@ body { background: #ffffff; color: black; } ** *****************************************************************************/ -#include <qapplication.h> -#include <qsqldatabase.h> -#include <qsqlcursor.h> +#include <ntqapplication.h> +#include <ntqsqldatabase.h> +#include <ntqsqlcursor.h> #include "../connection.h" int main( int argc, char *argv[] ) { - TQApplication app( argc, argv, FALSE ); + TQApplication app( argc, argv, FALSE ); if ( createConnections() ) { - TQSqlCursor cur( "creditors" ); + TQSqlCursor cur( "creditors" ); - TQStringList orderFields = TQStringList() << "surname" << "forename"; - TQSqlIndex order = cur.index( orderFields ); + TQStringList orderFields = TQStringList() << "surname" << "forename"; + TQSqlIndex order = cur.index( orderFields ); - TQStringList filterFields = TQStringList() << "surname" << "city"; - TQSqlIndex filter = cur.index( filterFields ); - cur.setValue( "surname", "Chirac" ); - cur.setValue( "city", "Paris" ); + TQStringList filterFields = TQStringList() << "surname" << "city"; + TQSqlIndex filter = cur.index( filterFields ); + cur.setValue( "surname", "Chirac" ); + cur.setValue( "city", "Paris" ); - cur.select( filter, order ); + cur.select( filter, order ); - while ( cur.next() ) { - int id = cur.value( "id" ).toInt(); - TQString name = cur.value( "forename" ).toString() + " " + - cur.value( "surname" ).toString(); - qDebug( TQString::number( id ) + ": " + name ); + while ( cur.next() ) { + int id = cur.value( "id" ).toInt(); + TQString name = cur.value( "forename" ).toString() + " " + + cur.value( "surname" ).toString(); + qDebug( TQString::number( id ) + ": " + name ); } } -- cgit v1.2.1