diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:24:30 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:24:30 -0600 |
commit | a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (patch) | |
tree | 3910055c634e2ca44eacd2c892118634df9b3597 /examples/sql/overview | |
parent | b0b53cc84f215df9b9bcce77253a6b7a9d300986 (diff) | |
download | qt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.tar.gz qt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.zip |
Rename additional global TQt functions
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 6afaa53..e096204 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 3714c1a..d3dd194 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(); QString name = cur.value( "forename" ).toString() + " " + cur.value( "surname" ).toString(); - qDebug( QString::number( id ) + ": " + name ); + tqDebug( QString::number( id ) + ": " + name ); } } diff --git a/examples/sql/overview/order1/main.cpp b/examples/sql/overview/order1/main.cpp index 3d64748..3d9b129 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[] ) QSqlIndex 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 762562e..43ae7a2 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 b1cc06b..6b9f303 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[] ) QSqlQuery 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 69b172b..0821265 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[] ) QSqlCursor 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() ); } |