diff options
author | Timothy Pearson <[email protected]> | 2012-02-28 22:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-02-28 22:31:39 -0600 |
commit | 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch) | |
tree | 6d4d5407c000add30aa78630e009c0e5d633e440 /examples/opengl | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
Diffstat (limited to 'examples/opengl')
-rw-r--r-- | examples/opengl/box/main.cpp | 2 | ||||
-rw-r--r-- | examples/opengl/gear/gear.cpp | 2 | ||||
-rw-r--r-- | examples/opengl/glpixmap/globjwin.cpp | 2 | ||||
-rw-r--r-- | examples/opengl/glpixmap/main.cpp | 2 | ||||
-rw-r--r-- | examples/opengl/overlay/main.cpp | 2 | ||||
-rw-r--r-- | examples/opengl/overlay_x11/gearwidget.cpp | 4 | ||||
-rw-r--r-- | examples/opengl/overlay_x11/main.cpp | 10 | ||||
-rw-r--r-- | examples/opengl/sharedbox/glbox.cpp | 10 | ||||
-rw-r--r-- | examples/opengl/sharedbox/main.cpp | 2 | ||||
-rw-r--r-- | examples/opengl/texture/gltexobj.cpp | 4 | ||||
-rw-r--r-- | examples/opengl/texture/main.cpp | 2 |
11 files changed, 21 insertions, 21 deletions
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; } |