From 4c0dae60b2fbc60996fc8f4bd29ee6219b869527 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 25 Sep 2023 12:03:00 +0900 Subject: Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- tdeui/kcolordialog.cpp | 2 +- tdeui/kdatetbl.h | 2 +- tdeui/kdockwidget.h | 2 +- tdeui/keditcl.h | 2 +- tdeui/kled.h | 2 +- tdeui/knuminput.h | 12 ++++++------ tdeui/krestrictedline.h | 2 +- tdeui/ktip.cpp | 2 +- tdeui/kxmlgui.xsd | 2 +- tdeui/tdeaboutdialog.cpp | 6 +++--- tdeui/tdetoolbar.h | 2 +- tdeui/tests/kcolortest.cpp | 4 ++-- 12 files changed, 20 insertions(+), 20 deletions(-) (limited to 'tdeui') diff --git a/tdeui/kcolordialog.cpp b/tdeui/kcolordialog.cpp index 33b1a8a57..e5832f81f 100644 --- a/tdeui/kcolordialog.cpp +++ b/tdeui/kcolordialog.cpp @@ -298,7 +298,7 @@ void KValueSelector::drawPalette( TQPixmap *pixmap ) TQImage image( xSize, ySize, 32 ); TQColor col; uint *p; - QRgb rgb; + TQRgb rgb; if ( orientation() == Qt::Horizontal ) { diff --git a/tdeui/kdatetbl.h b/tdeui/kdatetbl.h index d40099abf..2b3b3b93f 100644 --- a/tdeui/kdatetbl.h +++ b/tdeui/kdatetbl.h @@ -186,7 +186,7 @@ public slots: */ void close(int r); /** - * Hides the widget. Reimplemented from QWidget + * Hides the widget. Reimplemented from TQWidget */ void hide(); diff --git a/tdeui/kdockwidget.h b/tdeui/kdockwidget.h index 298794732..1c755d71a 100644 --- a/tdeui/kdockwidget.h +++ b/tdeui/kdockwidget.h @@ -37,7 +37,7 @@ - KDockWidget - IMPORTANT CLASS: the one and only dockwidget class - KDockManager - helper class - KDockMainWindow - IMPORTANT CLASS: a special TDEMainWindow that can have dockwidgets - - KDockArea - like KDockMainWindow but inherits just QWidget + - KDockArea - like KDockMainWindow but inherits just TQWidget IMPORTANT Note: This file compiles also in Qt-only mode by using the NO_KDE2 precompiler definition! */ diff --git a/tdeui/keditcl.h b/tdeui/keditcl.h index 8862d8ce0..2f84e4622 100644 --- a/tdeui/keditcl.h +++ b/tdeui/keditcl.h @@ -403,7 +403,7 @@ protected: private: TQTimer* repaintTimer; - QString killbufferstring; + TQString killbufferstring; TQWidget *parent; KEdFind *srchdialog; KEdReplace *replace_dialog; diff --git a/tdeui/kled.h b/tdeui/kled.h index 4fe8a7287..5bca61467 100644 --- a/tdeui/kled.h +++ b/tdeui/kled.h @@ -236,7 +236,7 @@ public: * in OFF state. * Defaults to 300. * - * @see QColor + * @see TQColor * * @param darkfactor sets the factor to darken the LED. * @short sets the factor to darken the LED. diff --git a/tdeui/knuminput.h b/tdeui/knuminput.h index 8712d2bf4..28ff17d68 100644 --- a/tdeui/knuminput.h +++ b/tdeui/knuminput.h @@ -213,7 +213,7 @@ public: * * @param value initial value for the control * @param base numeric base used for display - * @param parent parent QWidget + * @param parent parent TQWidget * @param name internal name for this widget */ KIntNumInput(int value, TQWidget* parent=0, int base = 10, const char *name=0); @@ -232,7 +232,7 @@ public: * @param below append KIntNumInput to the KNumInput chain * @param value initial value for the control * @param base numeric base used for display - * @param parent parent QWidget + * @param parent parent TQWidget * @param name internal name for this widget */ KIntNumInput(KNumInput* below, int value, TQWidget* parent=0, int base = 10, const char *name=0); @@ -457,7 +457,7 @@ public: * Constructor * * @param value initial value for the control - * @param parent parent QWidget + * @param parent parent TQWidget * @param name internal name for this widget */ KDoubleNumInput(double value, TQWidget *parent=0, const char *name=0) KDE_DEPRECATED; @@ -470,7 +470,7 @@ public: * @param value initial value for the control * @param step step size to use for up/down arrow clicks * @param precision number of digits after the decimal point - * @param parent parent QWidget + * @param parent parent TQWidget * @param name internal name for this widget * @since 3.1 */ @@ -490,7 +490,7 @@ public: * * @param below * @param value initial value for the control - * @param parent parent QWidget + * @param parent parent TQWidget * @param name internal name for this widget **/ KDoubleNumInput(KNumInput* below, double value, TQWidget* parent=0, const char* name=0) KDE_DEPRECATED; @@ -512,7 +512,7 @@ public: * @param value initial value for the control * @param step step size to use for up/down arrow clicks * @param precision number of digits after the decimal point - * @param parent parent QWidget + * @param parent parent TQWidget * @param name internal name for this widget * @since 3.1 */ diff --git a/tdeui/krestrictedline.h b/tdeui/krestrictedline.h index c343ffb55..26af032b8 100644 --- a/tdeui/krestrictedline.h +++ b/tdeui/krestrictedline.h @@ -85,7 +85,7 @@ protected: private: /// TQString of valid characters for this line - QString qsValidChars; + TQString qsValidChars; protected: virtual void virtual_hook( int id, void* data ); private: diff --git a/tdeui/ktip.cpp b/tdeui/ktip.cpp index 79993d5fc..80693b4f9 100644 --- a/tdeui/ktip.cpp +++ b/tdeui/ktip.cpp @@ -189,7 +189,7 @@ KTipDialog::KTipDialog(KTipDatabase *db, TQWidget *parent, const char *name) img = TQImage(locate("data", "tdewizard/pics/wizard_small.png")); // colorize and check to figure the correct color TDEIconEffect::colorize(img, mBlendedColor, 1.0); - QRgb colPixel( img.pixel(0,0) ); + TQRgb colPixel( img.pixel(0,0) ); mBlendedColor = TQColor(tqRed(colPixel),tqGreen(colPixel),tqBlue(colPixel)); } diff --git a/tdeui/kxmlgui.xsd b/tdeui/kxmlgui.xsd index dc2fad341..da7bf04e4 100644 --- a/tdeui/kxmlgui.xsd +++ b/tdeui/kxmlgui.xsd @@ -56,7 +56,7 @@ - The name used for every name and group attribute. Maps to QObject::name() in most cases. + The name used for every name and group attribute. Maps to TQObject::name() in most cases. diff --git a/tdeui/tdeaboutdialog.cpp b/tdeui/tdeaboutdialog.cpp index 9d572f824..16cf14e2e 100644 --- a/tdeui/tdeaboutdialog.cpp +++ b/tdeui/tdeaboutdialog.cpp @@ -1026,7 +1026,7 @@ TDEAboutContributor::setName(const TQString& n) // ############################################################ } -QString +TQString TDEAboutContributor::getName() { // ########################################################### @@ -1041,7 +1041,7 @@ TDEAboutContributor::setURL(const TQString& u) // ########################################################### } -QString +TQString TDEAboutContributor::getURL() { // ########################################################### @@ -1057,7 +1057,7 @@ TDEAboutContributor::setEmail(const TQString& e) // ########################################################### } -QString +TQString TDEAboutContributor::getEmail() { // ########################################################### diff --git a/tdeui/tdetoolbar.h b/tdeui/tdetoolbar.h index cf3a162df..adbb5b521 100644 --- a/tdeui/tdetoolbar.h +++ b/tdeui/tdetoolbar.h @@ -645,7 +645,7 @@ public: * You can do with this whatever you want, * except change its height (hardcoded). If you change its width * you will probably have to call TQToolBar::updateRects(true) - * @see QWidget + * @see TQWidget * @see updateRects() */ TQWidget *getWidget (int id); // ### KDE4: make this const! diff --git a/tdeui/tests/kcolortest.cpp b/tdeui/tests/kcolortest.cpp index 243de265b..8966be81a 100644 --- a/tdeui/tests/kcolortest.cpp +++ b/tdeui/tests/kcolortest.cpp @@ -46,11 +46,11 @@ void KColorWidget::doIntensityLoop() KImageEffect::intensity(image, -1./max); else { uint *qptr=(uint *)image.bits(); - QRgb qrgb; + TQRgb qrgb; int size=pixmap.width()*pixmap.height(); for (int i=0;i