summaryrefslogtreecommitdiffstats
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
parent50d1b990d5bea0fba69c065ec4fb629205e7b3b5 (diff)
downloadlibksquirrel-82528b267c9ed2898653873d027184e21e36f569.tar.gz
libksquirrel-82528b267c9ed2898653873d027184e21e36f569.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)
-rw-r--r--acinclude.m46
-rw-r--r--doc/html/development-highlev.html2
-rw-r--r--examples/qtapp/myqt.cpp4
-rw-r--r--examples/qtapp/myqt.h2
-rw-r--r--examples/qtgl/myqgl.cpp2
-rw-r--r--examples/qtgl/myqgl.h2
6 files changed, 9 insertions, 9 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2080a9c..dc1ef4f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1133,14 +1133,14 @@ cat >> conftest.$ac_ext <<EOF
EOF
if test $kde_qtsubver -gt 0; then
cat >> conftest.$ac_ext <<EOF
- QString s;
+ TQString s;
s.setLatin1("Elvis is alive", 14);
EOF
fi
fi
if test "$kde_qtver" = "3"; then
cat >> conftest.$ac_ext <<EOF
- (void)QStyleFactory::create(QString::null);
+ (void)QStyleFactory::create(TQString::null);
QCursor c(Qt::WhatsThisCursor);
EOF
fi
@@ -4664,7 +4664,7 @@ AC_TRY_RUN(dnl
#include <qimageio.h>
#include <qstring.h>
int main() {
- QString t = "hallo";
+ TQString t = "hallo";
t.fill('t');
qInitImageIO();
}
diff --git a/doc/html/development-highlev.html b/doc/html/development-highlev.html
index 6174f5c..4716844 100644
--- a/doc/html/development-highlev.html
+++ b/doc/html/development-highlev.html
@@ -26,7 +26,7 @@ source distribution of ksquirrel-libs.
RGBA *image = NULL, *scan;
fmt_codec_base *codeK;
- QString file = "/home/krasu/animation1.gif";
+ TQString file = "/home/krasu/animation1.gif";
<b>Determine the library and codec</b>
codeK = SQ_LibraryHandler::instance()->libraryForFile(file)->codec;
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: