summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:24:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:24:30 -0600
commita830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (patch)
tree3910055c634e2ca44eacd2c892118634df9b3597 /src/opengl
parentb0b53cc84f215df9b9bcce77253a6b7a9d300986 (diff)
downloadqt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.tar.gz
qt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.zip
Rename additional global TQt functions
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl.cpp8
-rw-r--r--src/opengl/qgl.h2
-rw-r--r--src/opengl/qgl_x11.cpp36
-rw-r--r--src/opengl/qglcolormap.cpp2
4 files changed, 24 insertions, 24 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index c2a35ea..51cb0b3 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -159,7 +159,7 @@ static QCleanupHandler<QGLFormat> qgl_cleanup_format;
if ( !w->format().stereo() ) {
// ok, goggles off
if ( !w->format().hasOverlay() ) {
- qFatal( "Cool hardware required" );
+ tqFatal( "Cool hardware required" );
}
}
\endcode
@@ -211,9 +211,9 @@ QGLFormat::QGLFormat()
: QGLWidget( QGLFormat( StencilBuffer | AlphaChannel ), parent, name )
{
if ( !format().stencil() )
- qWarning( "Could not get stencil buffer; results will be suboptimal" );
+ tqWarning( "Could not get stencil buffer; results will be suboptimal" );
if ( !format().alphaChannel() )
- qWarning( "Could not get alpha channel; results will be suboptimal" );
+ tqWarning( "Could not get alpha channel; results will be suboptimal" );
...
}
\endcode
@@ -877,7 +877,7 @@ void QGLContext::setDevice( QPaintDevice *pDev )
if ( d->paintDevice && (d->paintDevice->devType() != QInternal::Widget
&& d->paintDevice->devType() != QInternal::Pixmap) ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "QGLContext: Unsupported paint device type" );
+ tqWarning( "QGLContext: Unsupported paint device type" );
#endif
}
}
diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h
index 55fa07e..9a0343c 100644
--- a/src/opengl/qgl.h
+++ b/src/opengl/qgl.h
@@ -56,7 +56,7 @@
#define QGL_VERSION 450
#define QGL_VERSION_STR "4.5"
QM_EXPORT_OPENGL inline const char *qGLVersion() {
- qObsolete( 0, "qGLVersion", "qVersion" );
+ tqObsolete( 0, "qGLVersion", "qVersion" );
return QGL_VERSION_STR;
}
#endif
diff --git a/src/opengl/qgl_x11.cpp b/src/opengl/qgl_x11.cpp
index a8abef8..1787134 100644
--- a/src/opengl/qgl_x11.cpp
+++ b/src/opengl/qgl_x11.cpp
@@ -135,7 +135,7 @@ bool qt_resolve_gl_symbols(bool fatal)
if (!qt_glCallLists) { // if this fails the rest will surely fail
if (fatal)
- qFatal("Unable to resolve GL/GLX symbols - please check your GL library installation.");
+ tqFatal("Unable to resolve GL/GLX symbols - please check your GL library installation.");
return FALSE;
}
@@ -241,7 +241,7 @@ static Colormap choose_cmap( Display *dpy, XVisualInfo *vi )
const char *v = glXQueryServerString( dpy, vi->screen, GLX_VERSION );
if ( v )
mesa_gl = strstr(v,"Mesa") != 0;
- qAddPostRoutine( cleanup_cmaps );
+ tqAddPostRoutine( cleanup_cmaps );
}
CMapEntry *x = cmap_dict->find( (long) vi->visualid + ( vi->screen * 256 ) );
@@ -253,11 +253,11 @@ static Colormap choose_cmap( Display *dpy, XVisualInfo *vi )
XStandardColormap *c;
int n, i;
- // qDebug( "Choosing cmap for vID %0x", vi->visualid );
+ // tqDebug( "Choosing cmap for vID %0x", vi->visualid );
if ( vi->visualid ==
XVisualIDFromVisual( (Visual*)QPaintDevice::x11AppVisual( vi->screen ) ) ) {
- // qDebug( "Using x11AppColormap" );
+ // tqDebug( "Using x11AppColormap" );
return QPaintDevice::x11AppColormap( vi->screen );
}
@@ -271,7 +271,7 @@ static Colormap choose_cmap( Display *dpy, XVisualInfo *vi )
if ( c[i].visualid == vi->visual->visualid ) {
x->cmap = c[i].colormap;
x->scmap = c[i];
- //qDebug( "Using HP_RGB scmap" );
+ //tqDebug( "Using HP_RGB scmap" );
}
i++;
@@ -288,7 +288,7 @@ static Colormap choose_cmap( Display *dpy, XVisualInfo *vi )
_XmuLookupStandardColormap qt_XmuLookupStandardColormap;
qt_XmuLookupStandardColormap = (_XmuLookupStandardColormap) QLibrary::resolve("Xmu.so.6", "XmuLookupStandardColormap");
if (!qt_XmuLookupStandardColormap)
- qFatal("Unable to resolve Xmu symbols - please check your Xmu library installation.");
+ tqFatal("Unable to resolve Xmu symbols - please check your Xmu library installation.");
#define XmuLookupStandardColormap qt_XmuLookupStandardColormap
#endif
@@ -302,7 +302,7 @@ static Colormap choose_cmap( Display *dpy, XVisualInfo *vi )
if ( c[i].visualid == vi->visualid ) {
x->cmap = c[i].colormap;
x->scmap = c[i];
- //qDebug( "Using RGB_DEFAULT scmap" );
+ //tqDebug( "Using RGB_DEFAULT scmap" );
}
i++;
}
@@ -315,7 +315,7 @@ static Colormap choose_cmap( Display *dpy, XVisualInfo *vi )
x->cmap = XCreateColormap( dpy, RootWindow(dpy,vi->screen), vi->visual,
AllocNone );
x->alloc = TRUE;
- // qDebug( "Allocating cmap" );
+ // tqDebug( "Allocating cmap" );
}
// associate cmap with visualid
@@ -466,7 +466,7 @@ bool QGLContext::chooseContext( const QGLContext* shareContext )
if ( shareContext &&
( !shareContext->isValid() || !shareContext->cx ) ) {
#if defined(QT_CHECK_NULL)
- qWarning("QGLContext::chooseContext(): Cannot share with invalid context");
+ tqWarning("QGLContext::chooseContext(): Cannot share with invalid context");
#endif
shareContext = 0;
}
@@ -703,7 +703,7 @@ void QGLContext::makeCurrent()
{
if ( !d->valid ) {
#if defined(QT_CHECK_STATE)
- qWarning("QGLContext::makeCurrent(): Cannot make invalid context current.");
+ tqWarning("QGLContext::makeCurrent(): Cannot make invalid context current.");
#endif
return;
}
@@ -718,9 +718,9 @@ void QGLContext::makeCurrent()
((QWidget *)d->paintDevice)->winId(),
(GLXContext)cx );
#if defined(QT_CHECK_NULL)
- // qDebug("makeCurrent: %i, vi=%i, vi->vi=%i, vi->id=%i", (int)this, (int)vi, (int)((XVisualInfo*)vi)->visual, (int)((XVisualInfo*)vi)->visualid );
+ // tqDebug("makeCurrent: %i, vi=%i, vi->vi=%i, vi->id=%i", (int)this, (int)vi, (int)((XVisualInfo*)vi)->visual, (int)((XVisualInfo*)vi)->visualid );
if ( !ok )
- qWarning("QGLContext::makeCurrent(): Failed.");
+ tqWarning("QGLContext::makeCurrent(): Failed.");
#endif
if ( ok )
currentCtx = this;
@@ -881,13 +881,13 @@ void qgl_use_font(QFontEngineXft *engine, int first, int count, int listBase)
err = FT_Load_Glyph(face, FT_Get_Char_Index(face, i), FT_LOAD_DEFAULT);
if (err) {
- qDebug("failed loading glyph %d from font", i);
+ tqDebug("failed loading glyph %d from font", i);
Q_ASSERT(!err);
}
err = FT_Render_Glyph(face->glyph, (antialiased ? ft_render_mode_normal
: ft_render_mode_mono));
if (err) {
- qDebug("failed rendering glyph %d from font", i);
+ tqDebug("failed rendering glyph %d from font", i);
Q_ASSERT(!err);
}
@@ -1011,7 +1011,7 @@ void QGLOverlayWidget::initializeGL()
if ( transparentColor.isValid() )
qglClearColor( transparentColor );
else
- qWarning( "QGLOverlayWidget::initializeGL(): Could not get transparent color" );
+ tqWarning( "QGLOverlayWidget::initializeGL(): Could not get transparent color" );
realWidget->initializeOverlayGL();
}
@@ -1128,13 +1128,13 @@ void QGLWidget::setContext( QGLContext *context,
{
if ( context == 0 ) {
#if defined(QT_CHECK_NULL)
- qWarning( "QGLWidget::setContext: Cannot set null context" );
+ tqWarning( "QGLWidget::setContext: Cannot set null context" );
#endif
return;
}
if ( !context->deviceIsPixmap() && context->device() != this ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QGLWidget::setContext: Context must refer to this widget" );
+ tqWarning( "QGLWidget::setContext: Context must refer to this widget" );
#endif
return;
}
@@ -1333,7 +1333,7 @@ void QGLWidget::setColormap( const QGLColormap & c )
return;
if ( !cmap.d->cmapHandle && !qCanAllocColors( this ) ) {
- qWarning( "QGLWidget::setColormap: Cannot create a read/write "
+ tqWarning( "QGLWidget::setColormap: Cannot create a read/write "
"colormap for this visual" );
return;
}
diff --git a/src/opengl/qglcolormap.cpp b/src/opengl/qglcolormap.cpp
index 2deb46b..71d3937 100644
--- a/src/opengl/qglcolormap.cpp
+++ b/src/opengl/qglcolormap.cpp
@@ -173,7 +173,7 @@ void QGLColormap::setEntry( int idx, QRgb color )
#if defined(QT_CHECK_RANGE)
if ( idx < 0 || idx > (int) d->cells.size() ) {
- qWarning( "QGLColormap::setRgb: Index out of range." );
+ tqWarning( "QGLColormap::setRgb: Index out of range." );
return;
}
#endif