From 3d786f111190b8bbce1f0b572acc85b5a9da967c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 26 Sep 2023 11:33:47 +0900 Subject: [PATCH] Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- acinclude.m4 | 6 +++--- digikam/libs/dimg/README | 12 ++++++------ digikam/libs/dimg/loaders/README | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 18c1b43..2db09a6 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1133,14 +1133,14 @@ cat >> conftest.$ac_ext <> conftest.$ac_ext <> conftest.$ac_ext < #include int main() { - QString t = "hallo"; + TQString t = "hallo"; t.fill('t'); qInitImageIO(); } diff --git a/digikam/libs/dimg/README b/digikam/libs/dimg/README index 8b79bde..47e4a4c 100644 --- a/digikam/libs/dimg/README +++ b/digikam/libs/dimg/README @@ -23,7 +23,7 @@ support for them. so the only solution I see (without depending on imagemagick) is to roll our own library. i have been working on a imaging library for digikam, its called DImg. -it doesn't aim to be a complete imaging library; it uses QImage for +it doesn't aim to be a complete imaging library; it uses TQImage for rendering and for loading files which are not supported natively by it. some of the working/planned features: @@ -53,11 +53,11 @@ scale (this has been ported from Imlib2 - originally ported by Mosfet, I added 16 bit scaling support and support for scaling of only a section of the image) -* Rendering to Pixmap: using QImage/QPixmap. (see above for rendering of +* Rendering to Pixmap: using TQImage/QPixmap. (see above for rendering of 16bit images). -* Pixel format: the pixel format is different from QImage/Imlib2 pixel -format. In QImage/Imlib2 the pixel data is stored as unsigned ints and to +* Pixel format: the pixel format is different from TQImage/Imlib2 pixel +format. In TQImage/Imlib2 the pixel data is stored as unsigned ints and to access the individual colors you need to use bit-shifting to ensure endian correctness. in DImg, the pixel data is stored as unsigned char. the color layout is B,G,R,A (blue, green, red, alpha) @@ -89,7 +89,7 @@ for (int i=0; i