summaryrefslogtreecommitdiffstats
path: root/src/komposeglfullscreenwidget.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-03-30 14:11:34 +0300
committerMavridis Philippe <mavridisf@gmail.com>2021-03-30 14:11:34 +0300
commitd991b7f387775dc1071fb0c0af78de1c613ca991 (patch)
treeeb7c978130acb1b2c93eeea98be2f647372c6fac /src/komposeglfullscreenwidget.cpp
parent1bd3c5b42f1570b2100a4986f638f2723ee37ec4 (diff)
downloadkompose-d991b7f387775dc1071fb0c0af78de1c613ca991.tar.gz
kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.zip
Qt3->TQt conversion.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/komposeglfullscreenwidget.cpp')
-rw-r--r--src/komposeglfullscreenwidget.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/komposeglfullscreenwidget.cpp b/src/komposeglfullscreenwidget.cpp
index 095a1de..774b6ff 100644
--- a/src/komposeglfullscreenwidget.cpp
+++ b/src/komposeglfullscreenwidget.cpp
@@ -19,13 +19,13 @@
#include <GL/gl.h>
#include <GL/glut.h>
-KomposeGLFullscreenWidget::KomposeGLFullscreenWidget(QWidget *parent, const char *name) :
- QGLWidget(parent, name)
+KomposeGLFullscreenWidget::KomposeGLFullscreenWidget(TQWidget *parent, const char *name) :
+ TQGLWidget(parent, name)
{
- qDebug("KomposeGLFullscreenWidget::KomposeGLFullscreenWidget()");
+ tqDebug("KomposeGLFullscreenWidget::KomposeGLFullscreenWidget()");
layout = new KomposeLayout( this );
- setWindowState(Qt::WindowMaximized | Qt::WindowActive);
+ setWindowState(TQt::WindowMaximized | TQt::WindowActive);
showFullScreen();
createDesktopWidgets();
@@ -42,7 +42,7 @@ void KomposeGLFullscreenWidget::createDesktopWidgets()
{
int row = i / 2;
int col = i % 2;
- //qDebug("rc %d %d", row, col);
+ //tqDebug("rc %d %d", row, col);
desktop[i] = new KomposeGLDesktopWidget(i, this);
layout->add(dynamic_cast<KomposeWidgetInterface*>(desktop[i]));
}
@@ -53,13 +53,13 @@ void KomposeGLFullscreenWidget::initializeGL()
// Set up the rendering context, define display lists etc.:
if( !format().hasOpenGL() )
{
- qWarning( "KomposeGLFullscreenWidget::initializeGL() - OpenGL not supported!" );
+ tqWarning( "KomposeGLFullscreenWidget::initializeGL() - OpenGL not supported!" );
return;
}
if ( !format().doubleBuffer() )
{
- qWarning( "KomposeGLFullscreenWidget::initializeGL() - Direct rendering enabled !" );
+ tqWarning( "KomposeGLFullscreenWidget::initializeGL() - Direct rendering enabled !" );
}
// glShadeModel(GL_SMOOTH);
//
@@ -106,10 +106,10 @@ void KomposeGLFullscreenWidget::resizeGL( int w, int h )
}
-/*! draw OpenGL scene ( called from Qt ) */
+/*! draw OpenGL scene ( called from TQt ) */
void KomposeGLFullscreenWidget::paintGL()
{
- qDebug("KomposeGLFullscreenWidget::paintGL()");
+ tqDebug("KomposeGLFullscreenWidget::paintGL()");
glPushMatrix();
@@ -130,7 +130,7 @@ void KomposeGLFullscreenWidget::paintGL()
void KomposeGLFullscreenWidget::setOrthographicProjection()
{
- qDebug("KomposeGLFullscreenWidget::setOrthographicProjection() - %dx%d", width(), height());
+ tqDebug("KomposeGLFullscreenWidget::setOrthographicProjection() - %dx%d", width(), height());
glViewport( 0, 0, (GLint)width(), (GLint)height() );
// switch to projection mode
glMatrixMode(GL_PROJECTION);
@@ -146,31 +146,31 @@ void KomposeGLFullscreenWidget::setOrthographicProjection()
glMatrixMode(GL_MODELVIEW);;
}
-// Redirect these functions to QGLWidget
+// Redirect these functions to TQGLWidget
-void KomposeGLFullscreenWidget::setGeom ( const QRect &rect )
+void KomposeGLFullscreenWidget::setGeom ( const TQRect &rect )
{
- QGLWidget::setGeometry( rect );
+ TQGLWidget::setGeometry( rect );
}
-void KomposeGLFullscreenWidget::setGeom ( const QSize &size )
+void KomposeGLFullscreenWidget::setGeom ( const TQSize &size )
{
- QGLWidget::resize( size );
+ TQGLWidget::resize( size );
}
-QSize KomposeGLFullscreenWidget::getSize() const
+TQSize KomposeGLFullscreenWidget::getSize() const
{
- return QGLWidget::size();
+ return TQGLWidget::size();
}
-QRect KomposeGLFullscreenWidget::getRect() const
+TQRect KomposeGLFullscreenWidget::getRect() const
{
- return QGLWidget::rect();
+ return TQGLWidget::rect();
}
void KomposeGLFullscreenWidget::removeChildWidget( KomposeWidgetInterface* obj )
{
- QGLWidget::removeChild((QObject *) obj);
+ TQGLWidget::removeChild((TQObject *) obj);
}
#include "komposeglfullscreenwidget.moc"