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-navigating-main-cpp.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/sql-overview-navigating-main-cpp.html') diff --git a/doc/html/sql-overview-navigating-main-cpp.html b/doc/html/sql-overview-navigating-main-cpp.html index 0da2adf16..51171b5e0 100644 --- a/doc/html/sql-overview-navigating-main-cpp.html +++ b/doc/html/sql-overview-navigating-main-cpp.html @@ -42,26 +42,26 @@ body { background: #ffffff; color: black; } ** *****************************************************************************/ -#include <qapplication.h> -#include <qsqldatabase.h> -#include <qsqlquery.h> +#include <ntqapplication.h> +#include <ntqsqldatabase.h> +#include <ntqsqlquery.h> #include "../connection.h" int main( int argc, char *argv[] ) { - TQApplication app( argc, argv, FALSE ); + TQApplication app( argc, argv, FALSE ); if ( createConnections() ) { - TQSqlQuery query( "SELECT id, name FROM people ORDER BY name" ); - if ( ! query.isActive() ) return 1; // Query failed + TQSqlQuery query( "SELECT id, name FROM people ORDER BY name" ); + if ( ! query.isActive() ) return 1; // Query failed int i; - i = query.size(); // In this example we have 9 records; i == 9. - query.first(); // Moves to the first record. - i = query.at(); // i == 0 - query.last(); // Moves to the last record. - i = query.at(); // i == 8 - query.seek( query.size() / 2 ); // Moves to the middle record. - i = query.at(); // i == 4 + i = query.size(); // In this example we have 9 records; i == 9. + query.first(); // Moves to the first record. + i = query.at(); // i == 0 + query.last(); // Moves to the last record. + i = query.at(); // i == 8 + query.seek( query.size() / 2 ); // Moves to the middle record. + i = query.at(); // i == 4 } return 0; -- cgit v1.2.3