From 49e49d1876484adcc6c4f264b44b7f4cee28acc2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 26 Sep 2023 11:50:58 +0900 Subject: Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- doc/chalk/developers-plugins.docbook | 20 +++++++------- doc/kugar/progguide.docbook | 52 ++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) (limited to 'doc') diff --git a/doc/chalk/developers-plugins.docbook b/doc/chalk/developers-plugins.docbook index 32106d9b..319d9257 100644 --- a/doc/chalk/developers-plugins.docbook +++ b/doc/chalk/developers-plugins.docbook @@ -284,7 +284,7 @@ class ToolStar : public KParts::Plugin { TQ_OBJECT public: - ToolStar(QObject *parent, const char *name, const QStringList &); + ToolStar(TQObject *parent, const char *name, const QStringList &); virtual ~ToolStar(); }; @@ -309,7 +309,7 @@ typedef KGenericFactory<ToolStar> ToolStarFactory; K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) ) -ToolStar::ToolStar(QObject *parent, const char *name, const QStringList &) +ToolStar::ToolStar(TQObject *parent, const char *name, const QStringList &) : KParts::Plugin(parent, name) { setInstance(ToolStarFactory::instance()); @@ -464,7 +464,7 @@ pigment or things like that, substrate is the representation of the canvas. a valuetype: byte, short, integer, float — or other. size: the number of bytes this channel takes -color: a QColor representation of this +color: a TQColor representation of this channel for user interface visualization, for instance in histograms. an abbreviaton for use in the GUI when there’s not much @@ -497,7 +497,7 @@ can be divided into a number of groups: conversion, identification and manipulation. All classes must be able to convert a pixel from and to 8 bit RGB (i.e., a -QColor), and preferably also to and from 16 bit L*a*b. +TQColor), and preferably also to and from 16 bit L*a*b. Additionally, there is a method to convert to any colorspace from the current colorspace. @@ -782,7 +782,7 @@ The oilpaint filter uses the multi integer widget: -KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) +KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/) { vKisIntegerWidgetParam param; param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); @@ -790,7 +790,7 @@ KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* pa return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); } -KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) +KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget) { KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; if( widget == 0 ) @@ -1131,9 +1131,9 @@ time the tool is activated. -QWidget* KisToolStar::createOptionWidget(QWidget* parent) +TQWidget* KisToolStar::createOptionWidget(TQWidget* parent) { - QWidget *widget = KisToolShape::createOptionWidget(parent); + TQWidget *widget = KisToolShape::createOptionWidget(parent); m_optWidget = new WdgToolStar(widget); TQ_CHECK_PTR(m_optWidget); @@ -1202,7 +1202,7 @@ public: virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter); virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual bool userVisible(KisColorSpace * ) { return false; } - virtual QString pixmap() { return ""; } + virtual TQString pixmap() { return ""; } }; @@ -1466,7 +1466,7 @@ KoFilter::ConversionStatus XXXImport::convert(const QCString&, const QCStrin KisDoc * doc = dynamic_cast<KisDoc*>(m_chain -> outputDocument()); KisView * view = static_cast<KisView*>(doc -> views().getFirst()); - QString filename = m_chain -> inputFile(); + TQString filename = m_chain -> inputFile(); if (!doc) return KoFilter::CreationError; diff --git a/doc/kugar/progguide.docbook b/doc/kugar/progguide.docbook index 293096cc..97f4e471 100644 --- a/doc/kugar/progguide.docbook +++ b/doc/kugar/progguide.docbook @@ -173,7 +173,7 @@ Call this before opening the new report. bool setReportData -const QString &data_file_name +const TQString &data_file_name Sets report data from data_file_name file. @@ -181,12 +181,12 @@ Call this before opening the new report. bool setReportData -const QIODevice &data_io_device +const TQIODevice &data_io_device Sets report data from data_io_device file. -IO device can be any successor of the QIODevice class. +IO device can be any successor of the TQIODevice class. For example, to fetch records directly from the database, -create a QIODevice successor and redefine all necessary +create a TQIODevice successor and redefine all necessary functionality. @@ -194,7 +194,7 @@ functionality. bool setReportTemplate -const QString &template_file_name +const TQString &template_file_name Sets report template from template_file_name file. @@ -202,12 +202,12 @@ functionality. bool setReportTemplate -const QIODevice &template_io_device +const TQIODevice &template_io_device Sets report template from template_io_device file. -IO device can be any successor of the QIODevice class. +IO device can be any successor of the TQIODevice class. For example, to obtain a report template from network storage or database, -create a QIODevice successor and redefine all necessary functionality. +create a TQIODevice successor and redefine all necessary functionality. @@ -284,14 +284,14 @@ public: KugarWidgetPlugin (); QStringList keys () const; - QWidget *create (const QString & classname, QWidget * parent = + TQWidget *create (const TQString & classname, TQWidget * parent = 0, const char *name = 0); - QString group (const QString &) const; - QIconSet iconSet (const QString &) const; - QString includeFile (const QString &) const; - QString toolTip (const QString &) const; - QString whatsThis (const QString &) const; - bool isContainer (const QString &) const; + TQString group (const TQString &) const; + QIconSet iconSet (const TQString &) const; + TQString includeFile (const TQString &) const; + TQString toolTip (const TQString &) const; + TQString whatsThis (const TQString &) const; + bool isContainer (const TQString &) const; }; @@ -468,7 +468,7 @@ QStringList KugarWidgetPlugin::keys () const return list; } -QWidget* KugarWidgetPlugin::create (const QString & key, QWidget * parent, +TQWidget* KugarWidgetPlugin::create (const TQString & key, TQWidget * parent, const char *name) { if (key == "KReportViewer") @@ -476,40 +476,40 @@ QWidget* KugarWidgetPlugin::create (const QString & key, QWidget * parent, return 0; } -QString KugarWidgetPlugin::group (const QString & feature) const +TQString KugarWidgetPlugin::group (const TQString & feature) const { if (feature == "KReportViewer") return "Display"; - return QString::null; + return TQString::null; } -QIconSet KugarWidgetPlugin::iconSet (const QString &) const +QIconSet KugarWidgetPlugin::iconSet (const TQString &) const { return QIconSet (QPixmap (kugar_pixmap)); } -QString KugarWidgetPlugin::includeFile (const QString & feature) const +TQString KugarWidgetPlugin::includeFile (const TQString & feature) const { if (feature == "KReportViewer") return "kugar.h"; - return QString::null; + return TQString::null; } -QString KugarWidgetPlugin::toolTip (const QString & feature) const +TQString KugarWidgetPlugin::toolTip (const TQString & feature) const { if (feature == "KReportViewer") return "Kugar report viewer widget"; - return QString::null; + return TQString::null; } -QString KugarWidgetPlugin::whatsThis (const QString & feature) const +TQString KugarWidgetPlugin::whatsThis (const TQString & feature) const { if (feature == "KReportViewer") return "A widget to view xml reports"; - return QString::null; + return TQString::null; } -bool KugarWidgetPlugin::isContainer (const QString &) const +bool KugarWidgetPlugin::isContainer (const TQString &) const { return FALSE; } -- cgit v1.2.1