diff options
Diffstat (limited to 'examples/sql/overview')
-rw-r--r-- | examples/sql/overview/connection.cpp | 4 | ||||
-rw-r--r-- | examples/sql/overview/extract/main.cpp | 2 | ||||
-rw-r--r-- | examples/sql/overview/order1/main.cpp | 2 | ||||
-rw-r--r-- | examples/sql/overview/order2/main.cpp | 2 | ||||
-rw-r--r-- | examples/sql/overview/retrieve1/main.cpp | 2 | ||||
-rw-r--r-- | examples/sql/overview/retrieve2/main.cpp | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/examples/sql/overview/connection.cpp b/examples/sql/overview/connection.cpp index ee49b1a2a..bb8654df1 100644 --- a/examples/sql/overview/connection.cpp +++ b/examples/sql/overview/connection.cpp @@ -18,7 +18,7 @@ bool createConnections() defaultDB->setPassword( DB_SALES_PASSWD ); defaultDB->setHostName( DB_SALES_HOST ); if ( ! defaultDB->open() ) { - qWarning( "Failed to open sales database: " + defaultDB->lastError().text() ); + tqWarning( "Failed to open sales database: " + defaultDB->lastError().text() ); return FALSE; } @@ -28,7 +28,7 @@ bool createConnections() oracle->setPassword( DB_ORDERS_PASSWD ); oracle->setHostName( DB_ORDERS_HOST ); if ( ! oracle->open() ) { - qWarning( "Failed to open orders database: " + oracle->lastError().text() ); + tqWarning( "Failed to open orders database: " + oracle->lastError().text() ); return FALSE; } diff --git a/examples/sql/overview/extract/main.cpp b/examples/sql/overview/extract/main.cpp index 8a6606d21..0c47911ce 100644 --- a/examples/sql/overview/extract/main.cpp +++ b/examples/sql/overview/extract/main.cpp @@ -33,7 +33,7 @@ int main( int argc, char *argv[] ) int id = cur.value( "id" ).toInt(); TQString name = cur.value( "forename" ).toString() + " " + cur.value( "surname" ).toString(); - qDebug( TQString::number( id ) + ": " + name ); + tqDebug( TQString::number( id ) + ": " + name ); } } diff --git a/examples/sql/overview/order1/main.cpp b/examples/sql/overview/order1/main.cpp index 89d7658de..8c2c48df3 100644 --- a/examples/sql/overview/order1/main.cpp +++ b/examples/sql/overview/order1/main.cpp @@ -22,7 +22,7 @@ int main( int argc, char *argv[] ) TQSqlIndex order = cur.index( fields ); cur.select( order ); while ( cur.next() ) { - qDebug( cur.value( "id" ).toString() + ": " + + tqDebug( cur.value( "id" ).toString() + ": " + cur.value( "surname" ).toString() + " " + cur.value( "forename" ).toString() ); } diff --git a/examples/sql/overview/order2/main.cpp b/examples/sql/overview/order2/main.cpp index 2dfba8315..09c36151b 100644 --- a/examples/sql/overview/order2/main.cpp +++ b/examples/sql/overview/order2/main.cpp @@ -24,7 +24,7 @@ int main( int argc, char *argv[] ) cur.setValue( "surname", "Bloggs" ); cur.select( filter, order ); while ( cur.next() ) { - qDebug( cur.value( "id" ).toString() + ": " + + tqDebug( cur.value( "id" ).toString() + ": " + cur.value( "surname" ).toString() + " " + cur.value( "forename" ).toString() ); } diff --git a/examples/sql/overview/retrieve1/main.cpp b/examples/sql/overview/retrieve1/main.cpp index 1b7e11778..768f870de 100644 --- a/examples/sql/overview/retrieve1/main.cpp +++ b/examples/sql/overview/retrieve1/main.cpp @@ -20,7 +20,7 @@ int main( int argc, char *argv[] ) TQSqlQuery query( "SELECT id, surname FROM staff" ); if ( query.isActive() ) { while ( query.next() ) { - qDebug( query.value(0).toString() + ": " + + tqDebug( query.value(0).toString() + ": " + query.value(1).toString() ); } } diff --git a/examples/sql/overview/retrieve2/main.cpp b/examples/sql/overview/retrieve2/main.cpp index ecb59296e..71079e5ee 100644 --- a/examples/sql/overview/retrieve2/main.cpp +++ b/examples/sql/overview/retrieve2/main.cpp @@ -20,7 +20,7 @@ int main( int argc, char *argv[] ) TQSqlCursor cur( "staff" ); // Specify the table/view name cur.select(); // We'll retrieve every record while ( cur.next() ) { - qDebug( cur.value( "id" ).toString() + ": " + + tqDebug( cur.value( "id" ).toString() + ": " + cur.value( "surname" ).toString() + " " + cur.value( "salary" ).toString() ); } |