diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 12:35:41 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 18:07:15 +0900 |
commit | f8a7bcd4607ef9201d346c0b7fdab69460bf5125 (patch) | |
tree | ddf60eb0b4039d467b04b36a6972510c9acf5690 | |
parent | 5b01906be78f84a3b0caa599aff14723ad356ca4 (diff) | |
download | tdegraphics-f8a7bcd4607ef9201d346c0b7fdab69460bf5125.tar.gz tdegraphics-f8a7bcd4607ef9201d346c0b7fdab69460bf5125.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 f38a284617689a1364f9cbebb78cf637da0d2c9d)
-rw-r--r-- | doc/ksnapshot/index.docbook | 6 | ||||
-rw-r--r-- | kolourpaint/patches/checkerboard-faster-render.diff | 6 | ||||
-rw-r--r-- | kolourpaint/patches/color_eraser_speedup.diff | 6 | ||||
-rw-r--r-- | kolourpaint/patches/doc_resize_no_flicker.diff | 40 | ||||
-rw-r--r-- | kooka/README | 2 | ||||
-rw-r--r-- | kpovmodeler/StyleConvention | 2 | ||||
-rw-r--r-- | kview/TODO | 8 | ||||
-rw-r--r-- | kview/modules/presenter/DESIGN | 10 | ||||
-rw-r--r-- | libkscan/TODO | 2 | ||||
-rw-r--r-- | tdefile-plugins/RETURNED_ITEMS | 2 |
10 files changed, 42 insertions, 42 deletions
diff --git a/doc/ksnapshot/index.docbook b/doc/ksnapshot/index.docbook index 780efe0b..41ee63c5 100644 --- a/doc/ksnapshot/index.docbook +++ b/doc/ksnapshot/index.docbook @@ -318,16 +318,16 @@ the right arguments, as shown in this example: <prompt>$</prompt> <command>dcop `dcopstart ksnapshot` interface</command><computeroutput> QCStringList interfaces() QCStringList functions() -QString url() +TQString url() void slotGrab() void slotPrint() void slotSave() -bool save(QString filename) +bool save(TQString filename) void slotSaveAs() void slotCopy() void setTime(int newTime) int timeout() -void setURL(QString newURL) +void setURL(TQString newURL) void setGrabMode(int grab) int grabMode() void slotMovePointer(int x,int y) diff --git a/kolourpaint/patches/checkerboard-faster-render.diff b/kolourpaint/patches/checkerboard-faster-render.diff index 8c9c6402..ed75fb0a 100644 --- a/kolourpaint/patches/checkerboard-faster-render.diff +++ b/kolourpaint/patches/checkerboard-faster-render.diff @@ -34,14 +34,14 @@ QPainter::fillRect(). QPainter::drawPixmap() seems much faster. For + { + for (int x = 0; x < rep; x++) + { -+ QColor col; ++ TQColor col; + + if ((parityAsInt + x + y) % 2) + { + if (!isPreview) -+ col = QColor (213, 213, 213); ++ col = TQColor (213, 213, 213); + else -+ col = QColor (224, 224, 224); ++ col = TQColor (224, 224, 224); + } + else + col = Qt::white; diff --git a/kolourpaint/patches/color_eraser_speedup.diff b/kolourpaint/patches/color_eraser_speedup.diff index d57ece28..b6e51d5d 100644 --- a/kolourpaint/patches/color_eraser_speedup.diff +++ b/kolourpaint/patches/color_eraser_speedup.diff @@ -64,7 +64,7 @@ diff -u -p -r1.9 kptoolpen.cpp + painter.begin (&pixmap); painter.setPen (color (m_mouseButton)); -- QImage image; +- TQImage image; - if (m_mode & WashesPixmaps) - { #if DEBUG_KP_TOOL_PEN @@ -83,8 +83,8 @@ diff -u -p -r1.9 kptoolpen.cpp @@ -453,10 +451,21 @@ void kpToolPen::draw (const QPoint &this else if (m_mode & (DrawsPixmaps | WashesPixmaps)) { - QRgb colorToReplace; -+ QImage image; + TQRgb colorToReplace; ++ TQImage image; + QRegion region; if (m_mode & WashesPixmaps) diff --git a/kolourpaint/patches/doc_resize_no_flicker.diff b/kolourpaint/patches/doc_resize_no_flicker.diff index 6398e47a..ce3a74bd 100644 --- a/kolourpaint/patches/doc_resize_no_flicker.diff +++ b/kolourpaint/patches/doc_resize_no_flicker.diff @@ -118,9 +118,9 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp // protected -void kpViewScrollableContainer::repaintWidgetAtResizeLineViewRect ( -- QWidget *widget, const QRect &resizeLineViewRect) +- TQWidget *widget, const QRect &resizeLineViewRect) +void kpViewScrollableContainer::repaintWidgetRegion ( -+ QWidget *widget, ++ TQWidget *widget, + const QRegion &viewRegion) { - const QRect resizeLineGlobalRect = mapViewToGlobal (resizeLineViewRect); @@ -153,7 +153,7 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp } // protected --void kpViewScrollableContainer::repaintWidgetAtResizeLines (QWidget *widget) +-void kpViewScrollableContainer::repaintWidgetAtResizeLines (TQWidget *widget) +void kpViewScrollableContainer::eraseResizeLines (const QRegion &viewRegion) { - repaintWidgetAtResizeLineViewRect (widget, rightResizeLineRect ()); @@ -455,7 +455,7 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp + } +} + -+// protected virtual [base QWidget] ++// protected virtual [base TQWidget] +void kpViewScrollableContainer::windowActivationChange (bool wasActive) +{ +#if DEBUG_KP_VIEW_SCROLLABLE_CONTAINER && 1 @@ -502,11 +502,11 @@ diff -u -p -r1.3 kpviewscrollablecontainer.h QRect mapViewToGlobal (const QRect &viewRect); + QRegion mapViewToGlobal (const QRegion &viewRegion); -- void repaintWidgetAtResizeLineViewRect (QWidget *widget, +- void repaintWidgetAtResizeLineViewRect (TQWidget *widget, - const QRect &resizeLineViewRect); -- void repaintWidgetAtResizeLines (QWidget *widget); +- void repaintWidgetAtResizeLines (TQWidget *widget); - void eraseResizeLines (); -+ void repaintWidgetRegion (QWidget *widget, ++ void repaintWidgetRegion (TQWidget *widget, + const QRegion &viewRegion); + void eraseResizeLines (const QRegion &viewRegion); @@ -534,7 +534,7 @@ diff -u -p -r1.3 kpviewscrollablecontainer.h int m_resizeRoundedLastViewDX, m_resizeRoundedLastViewDY; + int m_resizeLinesDontPaintClever; bool m_haveMovedFromOriginalDocSize; - QString m_gripStatusMessage; + TQString m_gripStatusMessage; }; Index: kpwidgetmapper.cpp =================================================================== @@ -551,11 +551,11 @@ diff -u -p -r1.1 kpwidgetmapper.cpp #include <qwidget.h> -@@ -54,6 +55,17 @@ QRect fromGlobal (const QWidget *widget, +@@ -54,6 +55,17 @@ QRect fromGlobal (const TQWidget *widget, return QRect (topLeft.x (), topLeft.y (), rect.width (), rect.height ()); } -+QRegion fromGlobal (const QWidget *widget, const QRegion ®ion) ++QRegion fromGlobal (const TQWidget *widget, const QRegion ®ion) +{ + if (!widget || region.isEmpty ()) + return region; @@ -567,13 +567,13 @@ diff -u -p -r1.1 kpwidgetmapper.cpp +} + - QPoint toGlobal (const QWidget *widget, const QPoint &point) + QPoint toGlobal (const TQWidget *widget, const QPoint &point) { -@@ -72,5 +84,16 @@ QRect toGlobal (const QWidget *widget, c +@@ -72,5 +84,16 @@ QRect toGlobal (const TQWidget *widget, c return QRect (topLeft.x (), topLeft.y (), rect.width (), rect.height ()); } -+QRegion toGlobal (const QWidget *widget, const QRegion ®ion) ++QRegion toGlobal (const TQWidget *widget, const QRegion ®ion) +{ + if (!widget || region.isEmpty ()) + return region; @@ -594,7 +594,7 @@ diff -u -p -r1.1 kpwidgetmapper.h --- kpwidgetmapper.h 10 Jul 2004 11:38:09 -0000 1.1 +++ kpwidgetmapper.h 30 Jul 2004 11:37:21 -0000 @@ -32,15 +32,18 @@ - class QWidget; + class TQWidget; class QPoint; class QRect; +class QRegion; @@ -602,13 +602,13 @@ diff -u -p -r1.1 kpwidgetmapper.h namespace kpWidgetMapper { - QPoint fromGlobal (const QWidget *widget, const QPoint &point); - QRect fromGlobal (const QWidget *widget, const QRect &rect); -+ QRegion fromGlobal (const QWidget *widget, const QRegion ®ion); + QPoint fromGlobal (const TQWidget *widget, const QPoint &point); + QRect fromGlobal (const TQWidget *widget, const QRect &rect); ++ QRegion fromGlobal (const TQWidget *widget, const QRegion ®ion); - QPoint toGlobal (const QWidget *widget, const QPoint &point); - QRect toGlobal (const QWidget *widget, const QRect &rect); -+ QRegion toGlobal (const QWidget *widget, const QRegion ®ion); + QPoint toGlobal (const TQWidget *widget, const QPoint &point); + QRect toGlobal (const TQWidget *widget, const QRect &rect); ++ QRegion toGlobal (const TQWidget *widget, const QRegion ®ion); } diff --git a/kooka/README b/kooka/README index 8ae6fa54..1f5d6d10 100644 --- a/kooka/README +++ b/kooka/README @@ -55,7 +55,7 @@ support all, even not very common options, some scanners offer. Lets see what is necessary and makes sense for the purpose of Kooka. * Kooka does not yet have a strategy for very large images :(. It uses -the Qt QImage/QPixmap as is. On some displays, that causes problems. +the Qt TQImage/QPixmap as is. On some displays, that causes problems. * Automatic document feeder (ADF) support is not yet working correctly. diff --git a/kpovmodeler/StyleConvention b/kpovmodeler/StyleConvention index 1bad23cd..208349c5 100644 --- a/kpovmodeler/StyleConvention +++ b/kpovmodeler/StyleConvention @@ -69,7 +69,7 @@ Put type modifiers behind the type, not before the variable name. Example: -const QString& type; +const TQString& type; PMObject* obj; @@ -22,7 +22,7 @@ around with internals like the presenter plugin does. - This would make preloading (and caching) the images possible. - Caching: currently the canvas doesn't do anything with files while the - viewer only calls QImage( QByteArray ) or QImage( filename ). Therefor the + viewer only calls TQImage( QByteArray ) or TQImage( filename ). Therefor the Viewer has to cache the loading of images while the canvas would have to cache the zoomed images and pixmaps. It would be no problem to make the canvas work on files and bytearrays @@ -36,12 +36,12 @@ Something like: class Effect { - QString dialogTitle() const = 0; - QWidget * dialogWidget() = 0; + TQString dialogTitle() const = 0; + TQWidget * dialogWidget() = 0; /* @returns whether @ref applyEffect() would create the same image as * last time or a changed one */ bool changed() const = 0; - void applyEffect( QImage & ) = 0; + void applyEffect( TQImage & ) = 0; }; - Brightness Adjustment - Greyscale conversion diff --git a/kview/modules/presenter/DESIGN b/kview/modules/presenter/DESIGN index 3b187e78..034a3032 100644 --- a/kview/modules/presenter/DESIGN +++ b/kview/modules/presenter/DESIGN @@ -27,15 +27,15 @@ Presenter Plugin: - keep local copy of downloaded files - delete local copy on destruction - API: - QImage * image(); + TQImage * image(); KURL url(); - QString file(); //returns local filename or QString::null + TQString file(); //returns local filename or TQString::null - when loading an item from the playlist first ask for a - QImage, if that's not available ask for a local file, if + TQImage, if that's not available ask for a local file, if that's also not available take the url. - API: - QImage * image(); - QString file(); + TQImage * image(); + TQString file(); KURL url(); void setRandom(bool); void randomizeList(); diff --git a/libkscan/TODO b/libkscan/TODO index 5dd0a652..9ce04461 100644 --- a/libkscan/TODO +++ b/libkscan/TODO @@ -12,7 +12,7 @@ Our TODO List: - the gui functionality KDE 2.x - features. - KDE-features at all ! The whole stuff does not use any KDE-funcitonality, only Qt. What about having a Version which compiles without KDE ? .o0( Good idea to think about ? ) - - attention to drop QString where possible, and I think, its possible where SANE-stuff is + - attention to drop TQString where possible, and I think, its possible where SANE-stuff is used. - I18N-functions. In resource.h, I defined a macro I18N which does not much by now. I tried to place it around strings to prepare for real I18N treatment. How is that done ? diff --git a/tdefile-plugins/RETURNED_ITEMS b/tdefile-plugins/RETURNED_ITEMS index 70a3b519..4da0c461 100644 --- a/tdefile-plugins/RETURNED_ITEMS +++ b/tdefile-plugins/RETURNED_ITEMS @@ -115,7 +115,7 @@ String JPG quality 1 - "basic" default: unknown String User comment String Comment -QImage Thumbnail +TQImage Thumbnail gif plugin: |