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-update-main-cpp.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/sql-overview-update-main-cpp.html') diff --git a/doc/html/sql-overview-update-main-cpp.html b/doc/html/sql-overview-update-main-cpp.html index 8ef5f43cb..c5bf67f0c 100644 --- a/doc/html/sql-overview-update-main-cpp.html +++ b/doc/html/sql-overview-update-main-cpp.html @@ -42,24 +42,24 @@ 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( "prices" ); - cur.select( "id=202" ); - if ( cur.next() ) { - TQSqlRecord *buffer = cur.primeUpdate(); - double price = buffer->value( "price" ).toDouble(); + TQSqlCursor cur( "prices" ); + cur.select( "id=202" ); + if ( cur.next() ) { + TQSqlRecord *buffer = cur.primeUpdate(); + double price = buffer->value( "price" ).toDouble(); double newprice = price * 1.05; - buffer->setValue( "price", newprice ); - cur.update(); + buffer->setValue( "price", newprice ); + cur.update(); } } -- cgit v1.2.1