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 1f33949..748961b 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 c90ce8c..335e7c0 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 1137ef9..58d5144 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 60627da..2844462 100644
--- a/examples/demo/opengl/gltexobj.cpp
+++ b/examples/demo/opengl/gltexobj.cpp
@@ -100,7 +100,7 @@ void GLTexobj::initializeGL()
QImage 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." );
QImage dummy( 128, 128, 32 );
dummy.fill( Qt::green.rgb() );
buf = dummy;
@@ -108,7 +108,7 @@ void GLTexobj::initializeGL()
tex1 = QGLWidget::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." );
QImage dummy( 128, 128, 32 );
dummy.fill( Qt::red.rgb() );
buf = dummy;
diff --git a/examples/fileiconview/qfileiconview.cpp b/examples/fileiconview/qfileiconview.cpp
index cc590fb..54d672a 100644
--- a/examples/fileiconview/qfileiconview.cpp
+++ b/examples/fileiconview/qfileiconview.cpp
@@ -471,7 +471,7 @@ QtFileIconView::QtFileIconView( const QString &dir, QWidget *parent, const char
: QIconView( parent, name ), viewDir( dir ), newFolderNum( 0 )
{
if ( !iconFolderLockedLarge ) {
- qAddPostRoutine( cleanup );
+ tqAddPostRoutine( cleanup );
QWMatrix m;
m.scale( 0.6, 0.6 );
QPixmap iconpix( folder_locked_icon );
diff --git a/examples/iconview/main.cpp b/examples/iconview/main.cpp
index 8784e93..d16604f 100644
--- a/examples/iconview/main.cpp
+++ b/examples/iconview/main.cpp
@@ -27,18 +27,18 @@ public:
public slots:
void dropped( QDropEvent *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 3ee785e..67b0faa 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 440647c..5a69ad8 100644
--- a/examples/network/clientserver/server/server.cpp
+++ b/examples/network/clientserver/server/server.cpp
@@ -79,7 +79,7 @@ public:
QServerSocket( 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 4c40961..df9df6b 100644
--- a/examples/network/httpd/httpd.cpp
+++ b/examples/network/httpd/httpd.cpp
@@ -27,7 +27,7 @@ public:
QServerSocket(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 8d636e4..bb9bc1d 100644
--- a/examples/network/networkprotocol/main.cpp
+++ b/examples/network/networkprotocol/main.cpp
@@ -17,7 +17,7 @@ int main( int argc, char **argv )
{
QApplication a( argc, argv );
- qInitNetworkProtocols();
+ tqInitNetworkProtocols();
QNetworkProtocol::registerNetworkProtocol( "nntp", new QNetworkProtocolFactory<Nntp> );
View v;
diff --git a/examples/opengl/box/main.cpp b/examples/opengl/box/main.cpp
index 897cd3f..44c485b 100644
--- a/examples/opengl/box/main.cpp
+++ b/examples/opengl/box/main.cpp
@@ -30,7 +30,7 @@ int main( int argc, char **argv )
QApplication a(argc,argv);
if ( !QGLFormat::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 8f138e9..3109ec8 100644
--- a/examples/opengl/gear/gear.cpp
+++ b/examples/opengl/gear/gear.cpp
@@ -278,7 +278,7 @@ int main( int argc, char **argv )
QApplication a( argc, argv );
if ( !QGLFormat::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 1b3269b..7a50153 100644
--- a/examples/opengl/glpixmap/globjwin.cpp
+++ b/examples/opengl/glpixmap/globjwin.cpp
@@ -180,7 +180,7 @@ void GLObjectWindow::drawOnPixmap( QPixmap* 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 25ee5b4..b4af120 100644
--- a/examples/opengl/glpixmap/main.cpp
+++ b/examples/opengl/glpixmap/main.cpp
@@ -30,7 +30,7 @@ int main( int argc, char **argv )
QApplication a(argc,argv);
if ( !QGLFormat::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 2939ecb..5b6cf86 100644
--- a/examples/opengl/overlay/main.cpp
+++ b/examples/opengl/overlay/main.cpp
@@ -31,7 +31,7 @@ int main( int argc, char **argv )
QApplication a(argc,argv);
if ( !QGLFormat::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 e98938d..98fe110 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 Qt!
XWindowAttributes a;
XGetWindowAttributes( x11Display(), winId(), &a );
- qDebug( "QGLWidget: using Visual ID: 0x%x.",
+ tqDebug( "QGLWidget: 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 10ff6fc..bb1dfe1 100644
--- a/examples/opengl/overlay_x11/main.cpp
+++ b/examples/opengl/overlay_x11/main.cpp
@@ -36,7 +36,7 @@ QColor findOverlayTransparentColor()
appVisual = (Visual*)QPaintDevice::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 @@ QColor findOverlayTransparentColor()
return QColor( qRgb( 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 )
QApplication a( argc, argv );
if ( !QGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ tqWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
QColor 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 4d52ca5..755e6e1 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 25ee5b4..b4af120 100644
--- a/examples/opengl/sharedbox/main.cpp
+++ b/examples/opengl/sharedbox/main.cpp
@@ -30,7 +30,7 @@ int main( int argc, char **argv )
QApplication a(argc,argv);
if ( !QGLFormat::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 2fc05d6..10a1f0f 100644
--- a/examples/opengl/texture/gltexobj.cpp
+++ b/examples/opengl/texture/gltexobj.cpp
@@ -109,7 +109,7 @@ void GLTexobj::initializeGL()
QImage 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." );
QImage dummy( 128, 128, 32 );
dummy.fill( Qt::green.rgb() );
buf = dummy;
@@ -117,7 +117,7 @@ void GLTexobj::initializeGL()
tex1 = QGLWidget::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." );
QImage dummy( 128, 128, 32 );
dummy.fill( Qt::red.rgb() );
buf = dummy;
diff --git a/examples/opengl/texture/main.cpp b/examples/opengl/texture/main.cpp
index 0470d00..043a057 100644
--- a/examples/opengl/texture/main.cpp
+++ b/examples/opengl/texture/main.cpp
@@ -28,7 +28,7 @@ int main( int argc, char **argv )
QApplication a(argc,argv);
if ( !QGLFormat::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 f7e7232..cf3c5f6 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 346c3ed..370d07a 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 QFileDialog with \n"
diff --git a/examples/sql/blob/main.cpp b/examples/sql/blob/main.cpp
index 054d857..c6ce4d9 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
QFile 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;
}
QByteArray binaryData = f.readAll();
- qWarning( "Data size: %d", binaryData.size() );
+ tqWarning( "Data size: %d", binaryData.size() );
// create a table with a binary field
QSqlQuery 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( "\nQSqlQuery:" );
+ tqWarning( "\nQSqlQuery:" );
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 QSqlCursor
@@ -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 QSqlCursor - exiting" );
+ tqWarning( "Unable to insert BLOB using QSqlCursor - exiting" );
return 1;
}
// read the BLOBs back using QSqlCursor
if ( !cur.select() ) {
- qWarning( "Unable retrieve blobexample table using QSqlCursor - exiting" );
+ tqWarning( "Unable retrieve blobexample table using QSqlCursor - exiting" );
return 1;
}
- qWarning( "\nQSqlCursor:" );
+ tqWarning( "\nQSqlCursor:" );
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 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() );
}
diff --git a/examples/tablet/tabletstats.cpp b/examples/tablet/tabletstats.cpp
index a6e91fb..8e6360b 100644
--- a/examples/tablet/tabletstats.cpp
+++ b/examples/tablet/tabletstats.cpp
@@ -89,11 +89,11 @@ void StatsCanvas::tabletEvent( QTabletEvent *e )
e->accept();
switch( e->type() ) {
case QEvent::TabletPress:
- qDebug( "Tablet Press" );
+ tqDebug( "Tablet Press" );
mousePressed = TRUE;
break;
case QEvent::TabletRelease:
- qDebug( "Tablet Release" );
+ tqDebug( "Tablet Release" );
mousePressed = FALSE;
clearScreen();
break;
@@ -115,7 +115,7 @@ void StatsCanvas::tabletEvent( QTabletEvent *e )
void StatsCanvas::mouseMoveEvent( QMouseEvent *e )
{
- qDebug( "Mouse Move" );
+ tqDebug( "Mouse Move" );
// do nothing
QWidget::mouseMoveEvent( e );
}
@@ -123,13 +123,13 @@ void StatsCanvas::mouseMoveEvent( QMouseEvent *e )
void StatsCanvas::mousePressEvent( QMouseEvent *e )
{
- qDebug( "Mouse Press" );
+ tqDebug( "Mouse Press" );
QWidget::mousePressEvent( e );
}
void StatsCanvas::mouseReleaseEvent( QMouseEvent *e )
{
- qDebug( "Mouse Release" );
+ tqDebug( "Mouse Release" );
QWidget::mouseReleaseEvent( e );
}
diff --git a/examples/thread/semaphores/main.cpp b/examples/thread/semaphores/main.cpp
index d583c57..521f27a 100644
--- a/examples/thread/semaphores/main.cpp
+++ b/examples/thread/semaphores/main.cpp
@@ -255,7 +255,7 @@ void SemaphoreExample::customEvent(QCustomEvent *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 a64703f..65f2bc9 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 4f61edd..9966825 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( QListViewItem* /*item*/)
{
- //qDebug("selectionChanged %p", item );
+ //tqDebug("selectionChanged %p", item );
}
void WidgetView::clicked( QListViewItem* /*item*/ )
{
- //qDebug("clicked %p", item );
+ //tqDebug("clicked %p", item );
}
void WidgetView::mySelectionChanged( QListViewItem* /*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 );
}