summaryrefslogtreecommitdiffstats
path: root/src/komposegltaskwidget.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/komposegltaskwidget.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/komposegltaskwidget.cpp')
-rw-r--r--src/komposegltaskwidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/komposegltaskwidget.cpp b/src/komposegltaskwidget.cpp
index 69e1927..a2a7217 100644
--- a/src/komposegltaskwidget.cpp
+++ b/src/komposegltaskwidget.cpp
@@ -16,18 +16,18 @@
#include "komposelayout.h"
#include <kdebug.h>
-#include <qgl.h>
-#include <qimage.h>
+#include <tqgl.h>
+#include <tqimage.h>
-KomposeGLTaskWidget::KomposeGLTaskWidget(KomposeTask *t, QObject *parent, KomposeLayout *l, const char *name)
+KomposeGLTaskWidget::KomposeGLTaskWidget(KomposeTask *t, TQObject *parent, KomposeLayout *l, const char *name)
: KomposeGLWidget(parent, l),
task(t)
{
- QImage img = task->getScreenshot().convertToImage();
- img = img.smoothScale( 256, 256, QImage::ScaleMin );
- tex = QGLWidget::convertToGLFormat( img );
+ TQImage img = task->getScreenshot().convertToImage();
+ img = img.smoothScale( 256, 256, TQImage::ScaleMin );
+ tex = TQGLWidget::convertToGLFormat( img );
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
/* glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST); // cheap scaling when image bigger than texture
@@ -65,26 +65,26 @@ void KomposeGLTaskWidget::slotTaskDestroyed()
int KomposeGLTaskWidget::getHeightForWidth ( int w ) const
{
- qDebug("KomposeGLTaskWidget::getHeightForWidth()");
+ tqDebug("KomposeGLTaskWidget::getHeightForWidth()");
return task->getHeightForWidth(w);
}
int KomposeGLTaskWidget::getWidthForHeight ( int h ) const
{
- qDebug("KomposeGLTaskWidget::getWidthForHeight()");
+ tqDebug("KomposeGLTaskWidget::getWidthForHeight()");
return task->getWidthForHeight(h);
}
double KomposeGLTaskWidget::getAspectRatio()
{
- qDebug("KomposeGLTaskWidget::getAspectRatio()");
+ tqDebug("KomposeGLTaskWidget::getAspectRatio()");
return task->getAspectRatio();
}
void KomposeGLTaskWidget::draw()
{
KomposeGLWidget::draw();
- qDebug("KomposeGLTaskWidget::draw() - %d,%d %dx%d", getRect().x(), getRect().y(), getRect().width(), getRect().height());
+ tqDebug("KomposeGLTaskWidget::draw() - %d,%d %dx%d", getRect().x(), getRect().y(), getRect().width(), getRect().height());
glColor3f(1.0f, 0.0f, 0.0f);
glBindTexture(GL_TEXTURE_2D, texture);
@@ -96,7 +96,7 @@ void KomposeGLTaskWidget::draw()
// glTexImage2D( GL_TEXTURE_2D, 0, 3, tex.width(), tex.height(), 0,
// GL_RGBA, GL_UNSIGNED_BYTE, tex.bits() );
- // qDebug("KomposeGLTaskWidget::draw() - tex: %dx%d", tex.width(), tex.height() );
+ // tqDebug("KomposeGLTaskWidget::draw() - tex: %dx%d", tex.width(), tex.height() );
glBegin( GL_QUADS );
glTexCoord2f(0.0, 0.0);