diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-26 10:28:58 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-26 10:28:58 +0900 |
commit | b6c5fd7f2cc1b54794896fb5445cbad795424d63 (patch) | |
tree | 1d48547f28eaa24c055b36f1f2cf028b4c47b1a9 /examples | |
parent | 82a841cfe772a600162d2c28d82874de8ae21d9c (diff) | |
download | libksquirrel-b6c5fd7f2cc1b54794896fb5445cbad795424d63.tar.gz libksquirrel-b6c5fd7f2cc1b54794896fb5445cbad795424d63.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qtapp/myqt.cpp | 4 | ||||
-rw-r--r-- | examples/qtapp/myqt.h | 2 | ||||
-rw-r--r-- | examples/qtgl/myqgl.cpp | 2 | ||||
-rw-r--r-- | examples/qtgl/myqgl.h | 2 |
4 files changed, 5 insertions, 5 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(); diff --git a/examples/qtgl/myqgl.cpp b/examples/qtgl/myqgl.cpp index 2ae6e59..b1387f4 100644 --- a/examples/qtgl/myqgl.cpp +++ b/examples/qtgl/myqgl.cpp @@ -9,7 +9,7 @@ #include "ksquirrel-libs/fmt_utils.h" #include "ksquirrel-libs/error.h" -MyQGL::MyQGL(QWidget *parent, const char *name) : QGLWidget(parent, name), bits(0), w(0), h(0) +MyQGL::MyQGL(TQWidget *parent, const char *name) : QGLWidget(parent, name), bits(0), w(0), h(0) {} MyQGL::~MyQGL() diff --git a/examples/qtgl/myqgl.h b/examples/qtgl/myqgl.h index d0549df..70c1690 100644 --- a/examples/qtgl/myqgl.h +++ b/examples/qtgl/myqgl.h @@ -14,7 +14,7 @@ class MyQGL : public QGLWidget TQ_OBJECT public: - MyQGL(QWidget *parent = 0, const char *name = 0); + MyQGL(TQWidget *parent = 0, const char *name = 0); ~MyQGL(); public slots: |