summaryrefslogtreecommitdiffstats
path: root/katapult/plugins/display
diff options
context:
space:
mode:
Diffstat (limited to 'katapult/plugins/display')
-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
-rw-r--r--katapult/plugins/display/o2display/o2display.cpp10
-rw-r--r--katapult/plugins/display/o2display/o2display.h3
-rw-r--r--katapult/plugins/display/o2display/qembed_images.h28
-rw-r--r--katapult/plugins/display/puredisplay/puredisplay.cpp10
-rw-r--r--katapult/plugins/display/puredisplay/puredisplay.h3
-rw-r--r--katapult/plugins/display/puredisplay/qembed_images.h28
9 files changed, 63 insertions, 60 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;
}
}
diff --git a/katapult/plugins/display/o2display/o2display.cpp b/katapult/plugins/display/o2display/o2display.cpp
index 823dfb9..c2104d3 100644
--- a/katapult/plugins/display/o2display/o2display.cpp
+++ b/katapult/plugins/display/o2display/o2display.cpp
@@ -20,7 +20,7 @@
#include <kiconloader.h>
#include <kgenericfactory.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
#include "o2display.h"
#include "qembed_images.h"
@@ -41,11 +41,11 @@ K_EXPORT_COMPONENT_FACTORY( katapult_o2display,
#define RIGHTMARGIN 25
#define BOTTOMMARGIN 40
-o2Display::o2Display(QObject *parent, const char *name, const QStringList& list)
- : ImageDisplay(parent, name, list)
+o2Display::o2Display(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_SINGLE, HEIGHT_SINGLE);
setDoubleSize(WIDTH_DOUBLE, HEIGHT_DOUBLE);
diff --git a/katapult/plugins/display/o2display/o2display.h b/katapult/plugins/display/o2display/o2display.h
index bd3c293..db26a1c 100644
--- a/katapult/plugins/display/o2display/o2display.h
+++ b/katapult/plugins/display/o2display/o2display.h
@@ -28,8 +28,9 @@
class o2Display : public ImageDisplay
{
Q_OBJECT
+ TQ_OBJECT
public:
- o2Display(QObject *, const char *, const QStringList&);
+ o2Display(TQWidget *, const char *, const TQStringList&);
virtual ~o2Display();
};
diff --git a/katapult/plugins/display/o2display/qembed_images.h b/katapult/plugins/display/o2display/qembed_images.h
index d953c11..db3b3cf 100644
--- a/katapult/plugins/display/o2display/qembed_images.h
+++ b/katapult/plugins/display/o2display/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,0x9000000,0x45000000,0x8d010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,
0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,
0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,0xac010002,
@@ -3589,7 +3589,7 @@ static const QRgb singlebg_data[] = {
};
/* Generated by qembed */
-static const QRgb doublebg_data[] = {
+static const TQRgb doublebg_data[] = {
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0x3000000,0x3a000000,0x62000000,0x8a000000,0xb6010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,
0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,
0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,0xcc010001,
@@ -9756,7 +9756,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[] = {
@@ -9765,20 +9765,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 );
@@ -9786,7 +9786,7 @@ static const QImage& qembed_findImage( const QString& name )
}
}
if ( !img ) {
- static QImage dummy;
+ static TQImage dummy;
return dummy;
}
}
diff --git a/katapult/plugins/display/puredisplay/puredisplay.cpp b/katapult/plugins/display/puredisplay/puredisplay.cpp
index 7deb78d..92dcaaa 100644
--- a/katapult/plugins/display/puredisplay/puredisplay.cpp
+++ b/katapult/plugins/display/puredisplay/puredisplay.cpp
@@ -20,7 +20,7 @@
#include <kiconloader.h>
#include <kgenericfactory.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
#include "puredisplay.h"
#include "qembed_images.h"
@@ -41,11 +41,11 @@ K_EXPORT_COMPONENT_FACTORY( katapult_puredisplay,
#define RIGHTMARGIN 25
#define BOTTOMMARGIN 40
-PureDisplay::PureDisplay(QObject *parent, const char *name, const QStringList& list)
- : ImageDisplay(parent, name, list)
+PureDisplay::PureDisplay(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_SINGLE, HEIGHT_SINGLE);
setDoubleSize(WIDTH_DOUBLE, HEIGHT_DOUBLE);
diff --git a/katapult/plugins/display/puredisplay/puredisplay.h b/katapult/plugins/display/puredisplay/puredisplay.h
index 02ae356..344c91a 100644
--- a/katapult/plugins/display/puredisplay/puredisplay.h
+++ b/katapult/plugins/display/puredisplay/puredisplay.h
@@ -28,8 +28,9 @@
class PureDisplay : public ImageDisplay
{
Q_OBJECT
+ TQ_OBJECT
public:
- PureDisplay(QObject *, const char *, const QStringList&);
+ PureDisplay(TQWidget *, const char *, const TQStringList&);
virtual ~PureDisplay();
};
diff --git a/katapult/plugins/display/puredisplay/qembed_images.h b/katapult/plugins/display/puredisplay/qembed_images.h
index 5f809df..79c8b67 100644
--- a/katapult/plugins/display/puredisplay/qembed_images.h
+++ b/katapult/plugins/display/puredisplay/qembed_images.h
@@ -1,8 +1,8 @@
-#ifndef _QEMBED_1804289383
-#define _QEMBED_1804289383
-#include <qimage.h>
-#include <qdict.h>
-static const QRgb doublebg_data[] = {
+#ifndef _TQEMBED_1804289383
+#define _TQEMBED_1804289383
+#include <tqimage.h>
+#include <tqdict.h>
+static const TQRgb doublebg_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x1000000,0x1000000,0x1000000,0x2000000,0x2000000,0x2000000,0x2000000,0x2000000,0x3000000,0x3000000,0x3000000,
0x3000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,
@@ -6166,7 +6166,7 @@ static const QRgb doublebg_data[] = {
};
/* Generated by qembed */
-static const QRgb singlebg_data[] = {
+static const TQRgb singlebg_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x1000000,0x1000000,0x1000000,0x2000000,0x2000000,0x2000000,0x2000000,0x2000000,0x3000000,0x3000000,0x3000000,
0x3000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,
@@ -9756,7 +9756,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[] = {
@@ -9765,20 +9765,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 );
@@ -9786,7 +9786,7 @@ static const QImage& qembed_findImage( const QString& name )
}
}
if ( !img ) {
- static QImage dummy;
+ static TQImage dummy;
return dummy;
}
}