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-basicdatamanip-main-cpp.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/sql-overview-basicdatamanip-main-cpp.html') diff --git a/doc/html/sql-overview-basicdatamanip-main-cpp.html b/doc/html/sql-overview-basicdatamanip-main-cpp.html index 33332fb06..48cb4574a 100644 --- a/doc/html/sql-overview-basicdatamanip-main-cpp.html +++ b/doc/html/sql-overview-basicdatamanip-main-cpp.html @@ -42,9 +42,9 @@ 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" bool createConnections(); @@ -52,20 +52,20 @@ bool createConnections(); int main( int argc, char *argv[] ) { - TQApplication app( argc, argv, FALSE ); + TQApplication app( argc, argv, FALSE ); int rows = 0; if ( createConnections() ) { - TQSqlQuery query( "INSERT INTO staff ( id, forename, surname, salary ) " + TQSqlQuery query( "INSERT INTO staff ( id, forename, surname, salary ) " "VALUES ( 1155, 'Ginger', 'Davis', 50000 )" ); - if ( query.isActive() ) rows += query.numRowsAffected() ; + if ( query.isActive() ) rows += query.numRowsAffected() ; - query.exec( "UPDATE staff SET salary=60000 WHERE id=1155" ); - if ( query.isActive() ) rows += query.numRowsAffected() ; + query.exec( "UPDATE staff SET salary=60000 WHERE id=1155" ); + if ( query.isActive() ) rows += query.numRowsAffected() ; - query.exec( "DELETE FROM staff WHERE id=1155" ); - if ( query.isActive() ) rows += query.numRowsAffected() ; + query.exec( "DELETE FROM staff WHERE id=1155" ); + if ( query.isActive() ) rows += query.numRowsAffected() ; } return ( rows == 3 ) ? 0 : 1; -- cgit v1.2.1