From 397b7afa8e3f32268c4454bf4783ac2a5a799658 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 15 Oct 2024 13:05:33 +0900 Subject: Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/sql.html | 58 +++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'doc/html/sql.html') diff --git a/doc/html/sql.html b/doc/html/sql.html index 4b6ce21a1..9a9aa90d1 100644 --- a/doc/html/sql.html +++ b/doc/html/sql.html @@ -232,13 +232,13 @@ the driver, set up the connection information, and open the connection.

-

    #include <ntqapplication.h>
+
    #include <tqapplication.h>
     #include <tqsqldatabase.h>
     #include "../connection.h"
 
     int main( int argc, char *argv[] )
     {
-        TQApplication app( argc, argv, FALSE );
+        TQApplication app( argc, argv, FALSE );
 
         TQSqlDatabase *defaultDB = TQSqlDatabase::addDatabase( DB_SALES_DRIVER );
         defaultDB->setDatabaseName( DB_SALES_DBNAME );
@@ -313,7 +313,7 @@ function in connection.h.
         defaultDB->setPassword( DB_SALES_PASSWD );
         defaultDB->setHostName( DB_SALES_HOST );
         if ( ! defaultDB->open() ) {
-            tqWarning( "Failed to open sales database: " + defaultDB->lastError().text() );
+            tqWarning( "Failed to open sales database: " + defaultDB->lastError().text() );
             return FALSE;
         }
 
@@ -323,7 +323,7 @@ function in connection.h.
         oracle->setPassword( DB_ORDERS_PASSWD );
         oracle->setHostName( DB_ORDERS_HOST );
         if ( ! oracle->open() ) {
-            tqWarning( "Failed to open orders database: " + oracle->lastError().text() );
+            tqWarning( "Failed to open orders database: " + oracle->lastError().text() );
             return FALSE;
         }
 
@@ -349,13 +349,13 @@ function in connection.h.
 

-

    #include <ntqapplication.h>
+
    #include <tqapplication.h>
     #include <tqsqldatabase.h>
     #include "../connection.h"
 
     int main( int argc, char *argv[] )
     {
-        TQApplication app( argc, argv, FALSE );
+        TQApplication app( argc, argv, FALSE );
 
         if ( createConnections() ) {
             // Databases successfully opened; get pointers to them:
@@ -411,14 +411,14 @@ the transaction, and then either TQSqlDataba
 
 

-

    #include <ntqapplication.h>
+
    #include <tqapplication.h>
     #include <tqsqldatabase.h>
     #include <tqsqlquery.h>
     #include "../connection.h"
 
     int main( int argc, char *argv[] )
     {
-        TQApplication app( argc, argv, FALSE );
+        TQApplication app( argc, argv, FALSE );
 
         if ( createConnections() ) {
             TQSqlDatabase *oracledb = TQSqlDatabase::database( "ORACLE" );
@@ -486,7 +486,7 @@ cannot be determined, e.g. if the query fails.
     **
     *****************************************************************************/
 
-    #include <ntqapplication.h>
+    #include <tqapplication.h>
     #include <tqsqldatabase.h>
     #include <tqsqlquery.h>
     #include "../connection.h"
@@ -495,7 +495,7 @@ cannot be determined, e.g. if the query fails.
 
     int main( int argc, char *argv[] )
     {
-        TQApplication app( argc, argv, FALSE );
+        TQApplication app( argc, argv, FALSE );
 
         int rows = 0;
 
@@ -569,7 +569,7 @@ retrieve data from it.
             TQSqlQuery query( "SELECT id, surname FROM staff" );
             if ( query.isActive() ) {
                 while ( query.next() ) {
-                    tqDebug( query.value(0).toString() + ": " +
+                    tqDebug( query.value(0).toString() + ": " +
                             query.value(1).toString() );
                 }
             }
@@ -627,20 +627,20 @@ discuss subclassing TQSqlCursor.
 
 

-

    #include <ntqapplication.h>
+
    #include <tqapplication.h>
     #include <tqsqldatabase.h>
     #include <tqsqlcursor.h>
     #include "../connection.h"
 
     int main( int argc, char *argv[] )
     {
-        TQApplication app( argc, argv );
+        TQApplication app( argc, argv );
 
         if ( createConnections() ) {
             TQSqlCursor cur( "staff" ); // Specify the table/view name
             cur.select(); // We'll retrieve every record
             while ( cur.next() ) {
-                tqDebug( cur.value( "id" ).toString() + ": " +
+                tqDebug( cur.value( "id" ).toString() + ": " +
                         cur.value( "surname" ).toString() + " " +
                         cur.value( "salary" ).toString() );
             }
@@ -779,7 +779,7 @@ setValue() to ensure that the value used is the one we want.
                 int id = cur.value( "id" ).toInt();
                 TQString name = cur.value( "forename" ).toString() + " " +
                                cur.value( "surname" ).toString();
-                tqDebug( TQString::number( id ) + ": " + name );
+                tqDebug( TQString::number( id ) + ": " + name );
             }
 

From sql/overview/extract/main.cpp

@@ -803,7 +803,7 @@ values ourselves with the setValue() calls. The order fields are used in the ORDER BY clause.

Now we iterate through each matching record (if any). We retrieve the contents of the id, forename and surname fields and pass them on to -some processing function, in this example a simple tqDebug() call. +some processing function, in this example a simple tqDebug() call.

Manipulating Records

@@ -949,7 +949,7 @@ examples provides additional information.

-

    #include <ntqapplication.h>
+
    #include <tqapplication.h>
     #include <tqsqldatabase.h>
     #include <tqsqlcursor.h>
     #include <tqdatatable.h>
@@ -957,16 +957,16 @@ examples provides additional information.
 
     int main( int argc, char *argv[] )
     {
-        TQApplication app( argc, argv );
+        TQApplication app( argc, argv );
 
         if ( createConnections() ) {
             TQSqlCursor staffCursor( "staff" );
             TQDataTable *staffTable = new TQDataTable( &staffCursor, TRUE );
-            app.setMainWidget( staffTable );
+            app.setMainWidget( staffTable );
             staffTable->refresh();
             staffTable->show();
 
-            return app.exec();
+            return app.exec();
         }
 
         return 0;
@@ -987,7 +987,7 @@ function.
 
            TQSqlCursor staffCursor( "staff" );
             TQDataTable *staffTable = new TQDataTable( &staffCursor );
 
-            app.setMainWidget( staffTable );
+            app.setMainWidget( staffTable );
 
             staffTable->addColumn( "forename", "Forename" );
             staffTable->addColumn( "surname",  "Surname" );
@@ -1022,7 +1022,7 @@ the code below can be automatically generated by 
 
 

-

    #include <ntqapplication.h>
+
    #include <tqapplication.h>
     #include <tqdialog.h>
     #include <tqlabel.h>
     #include <tqlayout.h>
@@ -1070,15 +1070,15 @@ the code below can be automatically generated by 
 
     int main( int argc, char *argv[] )
     {
-        TQApplication app( argc, argv );
+        TQApplication app( argc, argv );
 
         if ( ! createConnections() ) return 1;
 
         FormDialog *formDialog = new FormDialog();
         formDialog->show();
-        app.setMainWidget( formDialog );
+        app.setMainWidget( formDialog );
 
-        return app.exec();
+        return app.exec();
     }
 

From sql/overview/form1/main.cpp

@@ -1420,7 +1420,7 @@ staffTable from being a TQDataTable to being a CustomTable.

-

    #include <ntqapplication.h>
+
    #include <tqapplication.h>
     #include <tqsqldatabase.h>
     #include <tqsqlcursor.h>
     #include <tqdatatable.h>
@@ -1428,14 +1428,14 @@ staffTable from being a TQDataTable to being a CustomTable.
 
     int main( int argc, char *argv[] )
     {
-        TQApplication app( argc, argv );
+        TQApplication app( argc, argv );
 
         if ( createConnections() ) {
             TQSqlCursor invoiceItemCursor( "invoiceitem" );
 
             TQDataTable *invoiceItemTable = new TQDataTable( &invoiceItemCursor );
 
-            app.setMainWidget( invoiceItemTable );
+            app.setMainWidget( invoiceItemTable );
 
             invoiceItemTable->addColumn( "pricesid", "PriceID" );
             invoiceItemTable->addColumn( "quantity", "Quantity" );
@@ -1444,7 +1444,7 @@ staffTable from being a TQDataTable to being a CustomTable.
             invoiceItemTable->refresh();
             invoiceItemTable->show();
 
-            return app.exec();
+            return app.exec();
         }
 
         return 1;
-- 
cgit v1.2.3