From 5fffa30386502b5423e45c2ed5e6af756b11c7b4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 28 May 2024 10:17:01 +0900 Subject: Rename nt* sql related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/sql-overview-extract-main-cpp.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 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 142a427c1..bf555d29f 100644 --- a/doc/html/sql-overview-extract-main-cpp.html +++ b/doc/html/sql-overview-extract-main-cpp.html @@ -43,8 +43,8 @@ body { background: #ffffff; color: black; } *****************************************************************************/ #include <ntqapplication.h> -#include <ntqsqldatabase.h> -#include <ntqsqlcursor.h> +#include <tqsqldatabase.h> +#include <tqsqlcursor.h> #include "../connection.h" int main( int argc, char *argv[] ) @@ -52,22 +52,22 @@ int main( int argc, char *argv[] ) TQApplication app( argc, argv, FALSE ); if ( createConnections() ) { - TQSqlCursor cur( "creditors" ); + TQSqlCursor cur( "creditors" ); TQStringList orderFields = TQStringList() << "surname" << "forename"; - TQSqlIndex order = cur.index( orderFields ); + TQSqlIndex order = cur.index( orderFields ); TQStringList filterFields = TQStringList() << "surname" << "city"; - TQSqlIndex filter = cur.index( filterFields ); - cur.setValue( "surname", "Chirac" ); - cur.setValue( "city", "Paris" ); + 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(); + while ( cur.next() ) { + int id = cur.value( "id" ).toInt(); + TQString name = cur.value( "forename" ).toString() + " " + + cur.value( "surname" ).toString(); tqDebug( TQString::number( id ) + ": " + name ); } } -- cgit v1.2.3