summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/canvas/canvas.cpp2
-rw-r--r--examples/canvas/makeimg.cpp2
-rw-r--r--examples/demo/opengl/glinfo_x11.cpp2
-rw-r--r--examples/demo/opengl/gltexobj.cpp4
-rw-r--r--examples/fileiconview/qfileiconview.cpp2
-rw-r--r--examples/iconview/main.cpp10
-rw-r--r--examples/life/main.cpp2
-rw-r--r--examples/network/clientserver/server/server.cpp2
-rw-r--r--examples/network/httpd/httpd.cpp2
-rw-r--r--examples/network/networkprotocol/main.cpp2
-rw-r--r--examples/opengl/box/main.cpp2
-rw-r--r--examples/opengl/gear/gear.cpp2
-rw-r--r--examples/opengl/glpixmap/globjwin.cpp2
-rw-r--r--examples/opengl/glpixmap/main.cpp2
-rw-r--r--examples/opengl/overlay/main.cpp2
-rw-r--r--examples/opengl/overlay_x11/gearwidget.cpp4
-rw-r--r--examples/opengl/overlay_x11/main.cpp10
-rw-r--r--examples/opengl/sharedbox/glbox.cpp10
-rw-r--r--examples/opengl/sharedbox/main.cpp2
-rw-r--r--examples/opengl/texture/gltexobj.cpp4
-rw-r--r--examples/opengl/texture/main.cpp2
-rw-r--r--examples/progress/progress.cpp2
-rw-r--r--examples/qdir/qdir.cpp2
-rw-r--r--examples/sql/blob/main.cpp34
-rw-r--r--examples/sql/overview/connection.cpp4
-rw-r--r--examples/sql/overview/extract/main.cpp2
-rw-r--r--examples/sql/overview/order1/main.cpp2
-rw-r--r--examples/sql/overview/order2/main.cpp2
-rw-r--r--examples/sql/overview/retrieve1/main.cpp2
-rw-r--r--examples/sql/overview/retrieve2/main.cpp2
-rw-r--r--examples/tablet/tabletstats.cpp10
-rw-r--r--examples/thread/semaphores/main.cpp2
-rw-r--r--examples/tictac/main.cpp2
-rw-r--r--examples/widgets/widgets.cpp10
34 files changed, 74 insertions, 74 deletions
diff --git a/examples/canvas/canvas.cpp b/examples/canvas/canvas.cpp
index 86405b51f..3c96ca4ac 100644
--- a/examples/canvas/canvas.cpp
+++ b/examples/canvas/canvas.cpp
@@ -732,7 +732,7 @@ void Main::addMesh()
#ifndef QT_NO_PROGRESSDIALOG
progress.setProgress( rows );
#endif
- // qDebug( "%d nodes, %d edges", nodecount, EdgeItem::count() );
+ // tqDebug( "%d nodes, %d edges", nodecount, EdgeItem::count() );
}
void Main::addRectangle()
diff --git a/examples/canvas/makeimg.cpp b/examples/canvas/makeimg.cpp
index acb90dbde..d8c4c1928 100644
--- a/examples/canvas/makeimg.cpp
+++ b/examples/canvas/makeimg.cpp
@@ -65,7 +65,7 @@ int main( int*, char**)
#endif
*img = img->smoothScale( w/2, h/2 );
- qDebug( "saving out.png");
+ tqDebug( "saving out.png");
img->save( "out.png", "PNG" );
w = img->width();
diff --git a/examples/demo/opengl/glinfo_x11.cpp b/examples/demo/opengl/glinfo_x11.cpp
index 7716d771f..33227c9af 100644
--- a/examples/demo/opengl/glinfo_x11.cpp
+++ b/examples/demo/opengl/glinfo_x11.cpp
@@ -236,7 +236,7 @@ GLInfo::GLInfo()
dpy = gl.x11Display();
if ( !dpy ) {
- qWarning( "Error: unable to open display %s\n", displayName );
+ tqWarning( "Error: unable to open display %s\n", displayName );
}
numScreens = ScreenCount( dpy );
diff --git a/examples/demo/opengl/gltexobj.cpp b/examples/demo/opengl/gltexobj.cpp
index 8a2a8c102..117917e38 100644
--- a/examples/demo/opengl/gltexobj.cpp
+++ b/examples/demo/opengl/gltexobj.cpp
@@ -100,7 +100,7 @@ void GLTexobj::initializeGL()
TQImage tex1, tex2, buf;
if ( !buf.load( "opengl/gllogo.bmp" ) ) { // Load first image from file
- qWarning( "Could not read image file, using single-color instead." );
+ tqWarning( "Could not read image file, using single-color instead." );
TQImage dummy( 128, 128, 32 );
dummy.fill( TQt::green.rgb() );
buf = dummy;
@@ -108,7 +108,7 @@ void GLTexobj::initializeGL()
tex1 = TQGLWidget::convertToGLFormat( buf ); // flipped 32bit RGBA
if ( !buf.load( "opengl/qtlogo.bmp" ) ) { // Load first image from file
- qWarning( "Could not read image file, using single-color instead." );
+ tqWarning( "Could not read image file, using single-color instead." );
TQImage dummy( 128, 128, 32 );
dummy.fill( TQt::red.rgb() );
buf = dummy;
diff --git a/examples/fileiconview/qfileiconview.cpp b/examples/fileiconview/qfileiconview.cpp
index 98442281f..1c735a9b6 100644
--- a/examples/fileiconview/qfileiconview.cpp
+++ b/examples/fileiconview/qfileiconview.cpp
@@ -471,7 +471,7 @@ TQtFileIconView::TQtFileIconView( const TQString &dir, TQWidget *parent, const c
: TQIconView( parent, name ), viewDir( dir ), newFolderNum( 0 )
{
if ( !iconFolderLockedLarge ) {
- qAddPostRoutine( cleanup );
+ tqAddPostRoutine( cleanup );
TQWMatrix m;
m.scale( 0.6, 0.6 );
TQPixmap iconpix( folder_locked_icon );
diff --git a/examples/iconview/main.cpp b/examples/iconview/main.cpp
index f797dd013..f7f3593c5 100644
--- a/examples/iconview/main.cpp
+++ b/examples/iconview/main.cpp
@@ -27,18 +27,18 @@ public:
public slots:
void dropped( TQDropEvent *mime ) {
- qDebug( "Dropped Mimesource %p into the view %p", mime, view );
- qDebug( " Formats:" );
+ tqDebug( "Dropped Mimesource %p into the view %p", mime, view );
+ tqDebug( " Formats:" );
int i = 0;
const char *str = mime->format( i );
- qDebug( " %s", str );
+ tqDebug( " %s", str );
while ( str ) {
- qDebug( " %s", str );
+ tqDebug( " %s", str );
str = mime->format( ++i );
}
};
void moved() {
- qDebug( "All selected items were moved to another widget" );
+ tqDebug( "All selected items were moved to another widget" );
}
protected:
diff --git a/examples/life/main.cpp b/examples/life/main.cpp
index 8b3a64dd5..61003a51c 100644
--- a/examples/life/main.cpp
+++ b/examples/life/main.cpp
@@ -13,7 +13,7 @@
void usage()
{
- qWarning( "Usage: life [-scale scale]" );
+ tqWarning( "Usage: life [-scale scale]" );
}
int main( int argc, char **argv )
diff --git a/examples/network/clientserver/server/server.cpp b/examples/network/clientserver/server/server.cpp
index fa6f83acb..e2b04e4a8 100644
--- a/examples/network/clientserver/server/server.cpp
+++ b/examples/network/clientserver/server/server.cpp
@@ -79,7 +79,7 @@ public:
TQServerSocket( 4242, 1, parent )
{
if ( !ok() ) {
- qWarning("Failed to bind to port 4242");
+ tqWarning("Failed to bind to port 4242");
exit(1);
}
}
diff --git a/examples/network/httpd/httpd.cpp b/examples/network/httpd/httpd.cpp
index 827d5cdb4..28e0bd37a 100644
--- a/examples/network/httpd/httpd.cpp
+++ b/examples/network/httpd/httpd.cpp
@@ -27,7 +27,7 @@ public:
TQServerSocket(8080,1,parent)
{
if ( !ok() ) {
- qWarning("Failed to bind to port 8080");
+ tqWarning("Failed to bind to port 8080");
exit( 1 );
}
}
diff --git a/examples/network/networkprotocol/main.cpp b/examples/network/networkprotocol/main.cpp
index 5f9f7d33c..db00b6a98 100644
--- a/examples/network/networkprotocol/main.cpp
+++ b/examples/network/networkprotocol/main.cpp
@@ -17,7 +17,7 @@ int main( int argc, char **argv )
{
TQApplication a( argc, argv );
- qInitNetworkProtocols();
+ tqInitNetworkProtocols();
TQNetworkProtocol::registerNetworkProtocol( "nntp", new TQNetworkProtocolFactory<Nntp> );
View v;
diff --git a/examples/opengl/box/main.cpp b/examples/opengl/box/main.cpp
index c91fadf52..52521c845 100644
--- a/examples/opengl/box/main.cpp
+++ b/examples/opengl/box/main.cpp
@@ -30,7 +30,7 @@ int main( int argc, char **argv )
TQApplication a(argc,argv);
if ( !TQGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ tqWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
diff --git a/examples/opengl/gear/gear.cpp b/examples/opengl/gear/gear.cpp
index 74eba96c2..0ceb2f6cb 100644
--- a/examples/opengl/gear/gear.cpp
+++ b/examples/opengl/gear/gear.cpp
@@ -278,7 +278,7 @@ int main( int argc, char **argv )
TQApplication a( argc, argv );
if ( !TQGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ tqWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
diff --git a/examples/opengl/glpixmap/globjwin.cpp b/examples/opengl/glpixmap/globjwin.cpp
index 59b6c244c..3f59ecd18 100644
--- a/examples/opengl/glpixmap/globjwin.cpp
+++ b/examples/opengl/glpixmap/globjwin.cpp
@@ -180,7 +180,7 @@ void GLObjectWindow::drawOnPixmap( TQPixmap* pm )
// Draw some text on the pixmap to differentiate it from the GL window
if ( pm->isNull() ) {
- qWarning("Cannot draw on null pixmap");
+ tqWarning("Cannot draw on null pixmap");
return;
}
else {
diff --git a/examples/opengl/glpixmap/main.cpp b/examples/opengl/glpixmap/main.cpp
index b8f735582..67d1c77d5 100644
--- a/examples/opengl/glpixmap/main.cpp
+++ b/examples/opengl/glpixmap/main.cpp
@@ -30,7 +30,7 @@ int main( int argc, char **argv )
TQApplication a(argc,argv);
if ( !TQGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ tqWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
diff --git a/examples/opengl/overlay/main.cpp b/examples/opengl/overlay/main.cpp
index 22e367b4d..3a56a5fe3 100644
--- a/examples/opengl/overlay/main.cpp
+++ b/examples/opengl/overlay/main.cpp
@@ -31,7 +31,7 @@ int main( int argc, char **argv )
TQApplication a(argc,argv);
if ( !TQGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ tqWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
diff --git a/examples/opengl/overlay_x11/gearwidget.cpp b/examples/opengl/overlay_x11/gearwidget.cpp
index 4d717f27e..e9a00c0ae 100644
--- a/examples/opengl/overlay_x11/gearwidget.cpp
+++ b/examples/opengl/overlay_x11/gearwidget.cpp
@@ -250,7 +250,7 @@ void GearWidget::resizeGL( int width, int height )
void GearWidget::paintGL()
{
- qDebug( "GearWidget: Doing GL rendering." );
+ tqDebug( "GearWidget: Doing GL rendering." );
#if defined (Q_GLX)
static bool doneIt = FALSE;
if ( !doneIt ) {
@@ -259,7 +259,7 @@ void GearWidget::paintGL()
// simpler in future versions of TQt!
XWindowAttributes a;
XGetWindowAttributes( x11Display(), winId(), &a );
- qDebug( "TQGLWidget: using Visual ID: 0x%x.",
+ tqDebug( "TQGLWidget: using Visual ID: 0x%x.",
(int)XVisualIDFromVisual( a.visual ) );
}
#endif
diff --git a/examples/opengl/overlay_x11/main.cpp b/examples/opengl/overlay_x11/main.cpp
index 45d3a0ea4..c8a5dfba5 100644
--- a/examples/opengl/overlay_x11/main.cpp
+++ b/examples/opengl/overlay_x11/main.cpp
@@ -36,7 +36,7 @@ TQColor findOverlayTransparentColor()
appVisual = (Visual*)TQPaintDevice::x11AppVisual();
#endif
- qDebug( "Default Visual ID: 0x%x", (int)XVisualIDFromVisual(appVisual) );
+ tqDebug( "Default Visual ID: 0x%x", (int)XVisualIDFromVisual(appVisual) );
typedef struct OverlayProp {
long visual;
@@ -80,11 +80,11 @@ TQColor findOverlayTransparentColor()
return TQColor( tqRgb( 1, 2, 3 ), overlayProp[i].value );
}
- qWarning( "Default visual is not in overlay plane" );
+ tqWarning( "Default visual is not in overlay plane" );
return invalidColor;
#else // defined(Q_WS_X11)
- qWarning( "Wrong window system - Only X11 has overlay support." );
+ tqWarning( "Wrong window system - Only X11 has overlay support." );
return invalidColor;
#endif
}
@@ -96,13 +96,13 @@ int main( int argc, char **argv )
TQApplication a( argc, argv );
if ( !TQGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ tqWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
TQColor transparentColor = findOverlayTransparentColor();
if ( !transparentColor.isValid() ) {
- qWarning( "Failed to get transparent color for overlay. Exiting." );
+ tqWarning( "Failed to get transparent color for overlay. Exiting." );
return -1;
}
diff --git a/examples/opengl/sharedbox/glbox.cpp b/examples/opengl/sharedbox/glbox.cpp
index f3ded8888..76163a712 100644
--- a/examples/opengl/sharedbox/glbox.cpp
+++ b/examples/opengl/sharedbox/glbox.cpp
@@ -57,18 +57,18 @@ void GLBox::initializeGL()
sharedDisplayList = makeObject(); // Make one
object = sharedDisplayList; // Use it
sharedListUsers++; // Keep reference count
- qDebug( "GLBox %s created shared display list.", name() );
+ tqDebug( "GLBox %s created shared display list.", name() );
}
else { // There is a shared diplay list
if ( isSharing() ) { // Can we access it?
object = sharedDisplayList; // Yes, use it
sharedListUsers++; // Keep reference count
- qDebug( "GLBox %s uses shared display list.", name() );
+ tqDebug( "GLBox %s uses shared display list.", name() );
}
else {
localDisplayList = makeObject(); // No, roll our own
object = localDisplayList; // and use that
- qDebug( "GLBox %s uses private display list.", name() );
+ tqDebug( "GLBox %s uses private display list.", name() );
}
}
}
@@ -84,14 +84,14 @@ GLBox::~GLBox()
makeCurrent(); // We're going to do gl calls
if ( localDisplayList != 0 ) { // Did we make our own?
glDeleteLists( localDisplayList, 1 ); // Yes, delete it
- qDebug( "GLBox %s deleted private display list.", name() );
+ tqDebug( "GLBox %s deleted private display list.", name() );
}
else {
sharedListUsers--; // No, we used the shared one; keep refcount
if ( sharedListUsers == 0 ) { // Any sharers left?
glDeleteLists( sharedDisplayList, 1 ); // No, delete it
sharedDisplayList = 0;
- qDebug( "GLBox %s deleted shared display list.", name() );
+ tqDebug( "GLBox %s deleted shared display list.", name() );
}
}
}
diff --git a/examples/opengl/sharedbox/main.cpp b/examples/opengl/sharedbox/main.cpp
index b8f735582..67d1c77d5 100644
--- a/examples/opengl/sharedbox/main.cpp
+++ b/examples/opengl/sharedbox/main.cpp
@@ -30,7 +30,7 @@ int main( int argc, char **argv )
TQApplication a(argc,argv);
if ( !TQGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ tqWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
diff --git a/examples/opengl/texture/gltexobj.cpp b/examples/opengl/texture/gltexobj.cpp
index fc77eaa5a..973cd4d53 100644
--- a/examples/opengl/texture/gltexobj.cpp
+++ b/examples/opengl/texture/gltexobj.cpp
@@ -109,7 +109,7 @@ void GLTexobj::initializeGL()
TQImage tex1, tex2, buf;
if ( !buf.load( "gllogo.bmp" ) ) { // Load first image from file
- qWarning( "Could not read image file, using single-color instead." );
+ tqWarning( "Could not read image file, using single-color instead." );
TQImage dummy( 128, 128, 32 );
dummy.fill( TQt::green.rgb() );
buf = dummy;
@@ -117,7 +117,7 @@ void GLTexobj::initializeGL()
tex1 = TQGLWidget::convertToGLFormat( buf ); // flipped 32bit RGBA
if ( !buf.load( "qtlogo.bmp" ) ) { // Load first image from file
- qWarning( "Could not read image file, using single-color instead." );
+ tqWarning( "Could not read image file, using single-color instead." );
TQImage dummy( 128, 128, 32 );
dummy.fill( TQt::red.rgb() );
buf = dummy;
diff --git a/examples/opengl/texture/main.cpp b/examples/opengl/texture/main.cpp
index 51c48ea7c..35b97f368 100644
--- a/examples/opengl/texture/main.cpp
+++ b/examples/opengl/texture/main.cpp
@@ -28,7 +28,7 @@ int main( int argc, char **argv )
TQApplication a(argc,argv);
if ( !TQGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ tqWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
diff --git a/examples/progress/progress.cpp b/examples/progress/progress.cpp
index 3ed6beee9..d12867e37 100644
--- a/examples/progress/progress.cpp
+++ b/examples/progress/progress.cpp
@@ -272,7 +272,7 @@ private:
{
if ( timer_driven ) {
if ( pb ) {
- qWarning("This cannot happen!");
+ tqWarning("This cannot happen!");
return;
}
rects = n;
diff --git a/examples/qdir/qdir.cpp b/examples/qdir/qdir.cpp
index 1902d9e73..1f13f72fe 100644
--- a/examples/qdir/qdir.cpp
+++ b/examples/qdir/qdir.cpp
@@ -307,7 +307,7 @@ int main( int argc, char ** argv )
else if ( arg == "-custom" )
custom = TRUE;
else if ( arg[0] == '-' ) {
- qDebug("Usage: qdir [-any | -dir | -custom] [-preview] [-default f] {-filter f} [caption ...]\n"
+ tqDebug("Usage: qdir [-any | -dir | -custom] [-preview] [-default f] {-filter f} [caption ...]\n"
" -any Get any filename, need not exist.\n"
" -dir Return a directory rather than a file.\n"
" -custom Opens a customized TQFileDialog with \n"
diff --git a/examples/sql/blob/main.cpp b/examples/sql/blob/main.cpp
index 524ecd9c8..9bb9ea0c4 100644
--- a/examples/sql/blob/main.cpp
+++ b/examples/sql/blob/main.cpp
@@ -29,52 +29,52 @@ int main( int argc, char ** argv )
db->setPassword( PASSWORD );
db->setHostName( HOST );
if ( !db->open() ) {
- qWarning( db->lastError().databaseText() );
+ tqWarning( db->lastError().databaseText() );
return 1;
}
if ( argc < 2 ) {
- qWarning( "Usage: %s <filename>", argv[0] );
+ tqWarning( "Usage: %s <filename>", argv[0] );
return 1;
}
// read a file which we want to insert into the database
TQFile f( argv[1] );
if ( !f.open( IO_ReadOnly ) ) {
- qWarning( "Unable to open data file '%s' - exiting", argv[1] );
+ tqWarning( "Unable to open data file '%s' - exiting", argv[1] );
return 1;
}
TQByteArray binaryData = f.readAll();
- qWarning( "Data size: %d", binaryData.size() );
+ tqWarning( "Data size: %d", binaryData.size() );
// create a table with a binary field
TQSqlQuery q;
if ( !q.exec( "CREATE TABLE blobexample ( id INT PRIMARY KEY, binfield LONGBLOB )" ) ) {
- qWarning( "Unable to create table - exiting" );
+ tqWarning( "Unable to create table - exiting" );
return 1;
}
// insert a BLOB into the table
if ( !q.prepare( "INSERT INTO blobexample ( id, binfield ) VALUES ( ?, ? )" ) ) {
- qWarning( "Unable to prepare query - exiting" );
+ tqWarning( "Unable to prepare query - exiting" );
return 1;
}
q.bindValue( 0, 1 );
q.bindValue( 1, binaryData );
if ( !q.exec() ) {
- qWarning( "Unable to execute prepared query - exiting" );
+ tqWarning( "Unable to execute prepared query - exiting" );
return 1;
}
// read the BLOB back from the database
if ( !q.exec( "SELECT id, binfield FROM blobexample" ) ) {
- qWarning( "Unable to execute query - exiting" );
+ tqWarning( "Unable to execute query - exiting" );
return 1;
}
- qWarning( "\nTQSqlQuery:" );
+ tqWarning( "\nTQSqlQuery:" );
while ( q.next() ) {
- qWarning( "BLOB id: %d", q.value( 0 ).toInt() );
- qWarning( "BLOB size: %d", q.value( 1 ).toByteArray().size() );
+ tqWarning( "BLOB id: %d", q.value( 0 ).toInt() );
+ tqWarning( "BLOB size: %d", q.value( 1 ).toByteArray().size() );
}
// write another BLOB using TQSqlCursor
@@ -83,23 +83,23 @@ int main( int argc, char ** argv )
r->setValue( "id", 2 );
r->setValue( "binfield", binaryData );
if ( !cur.insert() ) {
- qWarning( "Unable to insert BLOB using TQSqlCursor - exiting" );
+ tqWarning( "Unable to insert BLOB using TQSqlCursor - exiting" );
return 1;
}
// read the BLOBs back using TQSqlCursor
if ( !cur.select() ) {
- qWarning( "Unable retrieve blobexample table using TQSqlCursor - exiting" );
+ tqWarning( "Unable retrieve blobexample table using TQSqlCursor - exiting" );
return 1;
}
- qWarning( "\nTQSqlCursor:" );
+ tqWarning( "\nTQSqlCursor:" );
while ( cur.next() ) {
- qWarning( "BLOB id: %d", cur.value( "id" ).toInt() );
- qWarning( "BLOB size: %d", cur.value( "binfield" ).toByteArray().size() );
+ tqWarning( "BLOB id: %d", cur.value( "id" ).toInt() );
+ tqWarning( "BLOB size: %d", cur.value( "binfield" ).toByteArray().size() );
}
if ( !q.exec( "DROP TABLE blobexample" ) ) {
- qWarning( "Unable to drop table - exiting" );
+ tqWarning( "Unable to drop table - exiting" );
return 1;
}
return 0;
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() );
}
diff --git a/examples/tablet/tabletstats.cpp b/examples/tablet/tabletstats.cpp
index 771b59e25..1f72181d7 100644
--- a/examples/tablet/tabletstats.cpp
+++ b/examples/tablet/tabletstats.cpp
@@ -89,11 +89,11 @@ void StatsCanvas::tabletEvent( TQTabletEvent *e )
e->accept();
switch( e->type() ) {
case TQEvent::TabletPress:
- qDebug( "Tablet Press" );
+ tqDebug( "Tablet Press" );
mousePressed = TRUE;
break;
case TQEvent::TabletRelease:
- qDebug( "Tablet Release" );
+ tqDebug( "Tablet Release" );
mousePressed = FALSE;
clearScreen();
break;
@@ -115,7 +115,7 @@ void StatsCanvas::tabletEvent( TQTabletEvent *e )
void StatsCanvas::mouseMoveEvent( TQMouseEvent *e )
{
- qDebug( "Mouse Move" );
+ tqDebug( "Mouse Move" );
// do nothing
TQWidget::mouseMoveEvent( e );
}
@@ -123,13 +123,13 @@ void StatsCanvas::mouseMoveEvent( TQMouseEvent *e )
void StatsCanvas::mousePressEvent( TQMouseEvent *e )
{
- qDebug( "Mouse Press" );
+ tqDebug( "Mouse Press" );
TQWidget::mousePressEvent( e );
}
void StatsCanvas::mouseReleaseEvent( TQMouseEvent *e )
{
- qDebug( "Mouse Release" );
+ tqDebug( "Mouse Release" );
TQWidget::mouseReleaseEvent( e );
}
diff --git a/examples/thread/semaphores/main.cpp b/examples/thread/semaphores/main.cpp
index d31baf3dc..a7704805c 100644
--- a/examples/thread/semaphores/main.cpp
+++ b/examples/thread/semaphores/main.cpp
@@ -255,7 +255,7 @@ void SemaphoreExample::customEvent(TQCustomEvent *event) {
default:
{
- qWarning("Unknown custom event type: %d", event->type());
+ tqWarning("Unknown custom event type: %d", event->type());
}
}
}
diff --git a/examples/tictac/main.cpp b/examples/tictac/main.cpp
index bfd4035d3..5ea8e1a36 100644
--- a/examples/tictac/main.cpp
+++ b/examples/tictac/main.cpp
@@ -19,7 +19,7 @@ int main( int argc, char **argv )
if ( argc == 2 ) // get board size n
n = atoi(argv[1]);
if ( n < 3 || n > 10 ) { // out of range
- qWarning( "%s: Board size must be from 3x3 to 10x10", argv[0] );
+ tqWarning( "%s: Board size must be from 3x3 to 10x10", argv[0] );
return 1;
}
TicTacToe ttt( n ); // create game
diff --git a/examples/widgets/widgets.cpp b/examples/widgets/widgets.cpp
index 8a1f5d69c..6ef91f65c 100644
--- a/examples/widgets/widgets.cpp
+++ b/examples/widgets/widgets.cpp
@@ -714,21 +714,21 @@ void WidgetView::dummy()
void WidgetView::selectionChanged()
{
- //qDebug("selectionChanged");
+ //tqDebug("selectionChanged");
}
void WidgetView::selectionChanged( TQListViewItem* /*item*/)
{
- //qDebug("selectionChanged %p", item );
+ //tqDebug("selectionChanged %p", item );
}
void WidgetView::clicked( TQListViewItem* /*item*/ )
{
- //qDebug("clicked %p", item );
+ //tqDebug("clicked %p", item );
}
void WidgetView::mySelectionChanged( TQListViewItem* /*item*/ )
{
- //qDebug("mySelectionChanged %p", item );
+ //tqDebug("mySelectionChanged %p", item );
}
void WidgetView::showProperties()
@@ -747,5 +747,5 @@ void WidgetView::showProperties()
p->writable() ? "write" : "only", p->type() );
output += tmp;
}
- qDebug( output );
+ tqDebug( output );
}