summaryrefslogtreecommitdiffstats
path: root/examples/qtapp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-26 10:28:58 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-27 10:51:04 +0900
commit82528b267c9ed2898653873d027184e21e36f569 (patch)
tree0a9de0cff63f7a32ed66553f3ce46ebb66d74d8a /examples/qtapp
parent50d1b990d5bea0fba69c065ec4fb629205e7b3b5 (diff)
downloadlibksquirrel-82528b26.tar.gz
libksquirrel-82528b26.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit b6c5fd7f2cc1b54794896fb5445cbad795424d63)
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();