summaryrefslogtreecommitdiffstats
path: root/examples/qtapp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qtapp')
-rw-r--r--examples/qtapp/myqt.cpp4
-rw-r--r--examples/qtapp/myqt.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/qtapp/myqt.cpp b/examples/qtapp/myqt.cpp
index 01e01f9..548f2ea 100644
--- a/examples/qtapp/myqt.cpp
+++ b/examples/qtapp/myqt.cpp
@@ -9,7 +9,7 @@
#include "ksquirrel-libs/fmt_utils.h"
#include "ksquirrel-libs/error.h"
-MyQT::MyQT(QWidget *parent, const char *name) : QLabel(parent, name)
+MyQT::MyQT(TQWidget *parent, const char *name) : QLabel(parent, name)
{
setAlignment(Qt::AlignCenter);
}
@@ -100,7 +100,7 @@ QPixmap MyQT::loadImage()
codeK->read_close();
- QImage im((unsigned char*)image, finfo.image[current].w, finfo.image[current].h, 32, 0, 0, QImage::LittleEndian);
+ TQImage im((unsigned char*)image, finfo.image[current].w, finfo.image[current].h, 32, 0, 0, TQImage::LittleEndian);
return QPixmap(im.swapRGB());
}
diff --git a/examples/qtapp/myqt.h b/examples/qtapp/myqt.h
index 8369054..e05ee1d 100644
--- a/examples/qtapp/myqt.h
+++ b/examples/qtapp/myqt.h
@@ -14,7 +14,7 @@ class MyQT : public QLabel
TQ_OBJECT
public:
- MyQT(QWidget *parent = 0, const char *name = 0);
+ MyQT(TQWidget *parent = 0, const char *name = 0);
~MyQT();
QPixmap loadImage();