summaryrefslogtreecommitdiffstats
path: root/katapult/plugins/display/glassdisplay
diff options
context:
space:
mode:
Diffstat (limited to 'katapult/plugins/display/glassdisplay')
-rw-r--r--katapult/plugins/display/glassdisplay/glassdisplay.cpp10
-rw-r--r--katapult/plugins/display/glassdisplay/glassdisplay.h3
-rw-r--r--katapult/plugins/display/glassdisplay/qembed_images.h28
3 files changed, 21 insertions, 20 deletions
diff --git a/katapult/plugins/display/glassdisplay/glassdisplay.cpp b/katapult/plugins/display/glassdisplay/glassdisplay.cpp
index 278d67f..67d6858 100644
--- a/katapult/plugins/display/glassdisplay/glassdisplay.cpp
+++ b/katapult/plugins/display/glassdisplay/glassdisplay.cpp
@@ -20,7 +20,7 @@
#include <kiconloader.h>
#include <kgenericfactory.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
#include "glassdisplay.h"
#include "qembed_images.h"
@@ -38,11 +38,11 @@ K_EXPORT_COMPONENT_FACTORY( katapult_glassdisplay,
#define RIGHTMARGIN 8
#define BOTTOMMARGIN 8
-GlassDisplay::GlassDisplay(QObject *parent, const char *name, const QStringList& list)
- : ImageDisplay(parent, name, list)
+GlassDisplay::GlassDisplay(TQWidget *tqparent, const char *name, const TQStringList& list)
+ : ImageDisplay(TQT_TQOBJECT(tqparent), name, list)
{
- setSingleBG(new QPixmap(qembed_findImage("singlebg")));
- setDoubleBG(new QPixmap(qembed_findImage("doublebg")));
+ setSingleBG(new TQPixmap(qembed_findImage("singlebg")));
+ setDoubleBG(new TQPixmap(qembed_findImage("doublebg")));
setSingleSize(WIDTH, HEIGHT);
setDoubleSize(WIDTH, HEIGHT);
diff --git a/katapult/plugins/display/glassdisplay/glassdisplay.h b/katapult/plugins/display/glassdisplay/glassdisplay.h
index 166ed99..02236be 100644
--- a/katapult/plugins/display/glassdisplay/glassdisplay.h
+++ b/katapult/plugins/display/glassdisplay/glassdisplay.h
@@ -28,8 +28,9 @@
class GlassDisplay : public ImageDisplay
{
Q_OBJECT
+ TQ_OBJECT
public:
- GlassDisplay(QObject *, const char *, const QStringList&);
+ GlassDisplay(TQWidget *, const char *, const TQStringList&);
virtual ~GlassDisplay();
};
diff --git a/katapult/plugins/display/glassdisplay/qembed_images.h b/katapult/plugins/display/glassdisplay/qembed_images.h
index a8e5b3a..5a97c32 100644
--- a/katapult/plugins/display/glassdisplay/qembed_images.h
+++ b/katapult/plugins/display/glassdisplay/qembed_images.h
@@ -1,8 +1,8 @@
-#ifndef _QEMBED_1804289383
-#define _QEMBED_1804289383
-#include <qimage.h>
-#include <qdict.h>
-static const QRgb singlebg_data[] = {
+#ifndef _TQEMBED_1804289383
+#define _TQEMBED_1804289383
+#include <tqimage.h>
+#include <tqdict.h>
+static const TQRgb singlebg_data[] = {
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
@@ -3989,7 +3989,7 @@ static const QRgb singlebg_data[] = {
};
/* Generated by qembed */
-static const QRgb doublebg_data[] = {
+static const TQRgb doublebg_data[] = {
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
@@ -7979,7 +7979,7 @@ static struct EmbedImage {
int width, height, depth;
const unsigned char *data;
int numColors;
- const QRgb *colorTable;
+ const TQRgb *colorTable;
bool alpha;
const char *name;
} embed_image_vec[] = {
@@ -7988,20 +7988,20 @@ static struct EmbedImage {
{ 0, 0, 0, 0, 0, 0, 0, 0 }
};
-static const QImage& qembed_findImage( const QString& name )
+static const TQImage& qembed_findImage( const TQString& name )
{
- static QDict<QImage> dict;
- QImage* img = dict.find( name );
+ static TQDict<TQImage> dict;
+ TQImage* img = dict.tqfind( name );
if ( !img ) {
for ( int i = 0; embed_image_vec[i].data; i++ ) {
if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) {
- img = new QImage((uchar*)embed_image_vec[i].data,
+ img = new TQImage((uchar*)embed_image_vec[i].data,
embed_image_vec[i].width,
embed_image_vec[i].height,
embed_image_vec[i].depth,
- (QRgb*)embed_image_vec[i].colorTable,
+ (TQRgb*)embed_image_vec[i].colorTable,
embed_image_vec[i].numColors,
- QImage::BigEndian );
+ TQImage::BigEndian );
if ( embed_image_vec[i].alpha )
img->setAlphaBuffer( TRUE );
dict.insert( name, img );
@@ -8009,7 +8009,7 @@ static const QImage& qembed_findImage( const QString& name )
}
}
if ( !img ) {
- static QImage dummy;
+ static TQImage dummy;
return dummy;
}
}