From d2728dd8dbad48f045a5eca1899924df15633a89 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 25 Sep 2023 13:57:48 +0900 Subject: Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- doc/kdearch/index.docbook | 50 +++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'doc/kdearch/index.docbook') diff --git a/doc/kdearch/index.docbook b/doc/kdearch/index.docbook index 97dee33d..b75978ff 100644 --- a/doc/kdearch/index.docbook +++ b/doc/kdearch/index.docbook @@ -337,7 +337,7 @@ Pixmap effects like gradients and patterns. <ulink url="kdeapi:tdeui/KPixmapIO">KPixmapIO</ulink> -Fast QImage to QPixmap conversion. +Fast TQImage to QPixmap conversion. @@ -684,7 +684,7 @@ The central graphics class for 2D painting with Qt is draw on a QPaintDevice. There are three possible paint devices implemented: One is -QWidget +TQWidget which represents a widget on the screen. The second is QPrinter which represents a printer and produces Postscript output. The third it @@ -967,11 +967,11 @@ Brushes can be constructed in four different ways: patterns shown below. -QBrush::QBrush(const QColor &, BrushStyle) - This creates a colored brush +QBrush::QBrush(const TQColor &, BrushStyle) - This creates a colored brush with one of the patterns shown below. -QBrush::QBrush(const QColor &, const QPixmap) - This creates a colored +QBrush::QBrush(const TQColor &, const QPixmap) - This creates a colored brush with the custom pattern you give as second parameter. @@ -1000,7 +1000,7 @@ QPainter::setBrushOrigin(). Colors play a role both when stroking curves and when filling shapes. In Qt, colors are represented by the class -QColor. Qt does not support +TQColor. Qt does not support advanced graphics features like ICC color profiles and color correction. Colors are usually constructed by specifying their red, green and blue components, as the RGB model is the way pixels are composed of on a monitor. @@ -1104,14 +1104,14 @@ to avoid flicker. -In contrast, QImage objects +In contrast, TQImage objects live on the client side. Their emphasis in on providing direct access to the pixels of the image. This makes them of use for image manipulation, and things -like loading and saving to disk (QPixmap's load() method takes QImage as +like loading and saving to disk (QPixmap's load() method takes TQImage as intermediate step). On the other hand, painting an image on a widget is a relatively expensive operation, as it implies a transfer to the X server, which can take some time, especially for large images and for remote servers. -Depending on the color depth, the conversion from QImage to QPixmap may also +Depending on the color depth, the conversion from TQImage to QPixmap may also require dithering. @@ -1123,7 +1123,7 @@ require dithering. Text can be drawn with one of the overloaded variants of the method -QPainter::drawText(). These draw a QString either at a given point or in a given +QPainter::drawText(). These draw a TQString either at a given point or in a given rectangle, using the font set by QPainter::setFont(). There is also a parameter which takes an ORed combination of some flags from the enums Qt::AlignmentFlags @@ -1658,7 +1658,7 @@ ask the client's factory for it: void MainWindow::popupRequested() { - QWidget *w = factory()->container("context_popup", this); + TQWidget *w = factory()->container("context_popup", this); QPopupMenu *popup = static_cast<QPopupMenu *>(w); popup->exec(QCursor::pos()); } @@ -1929,13 +1929,13 @@ X-TDE-ServiceType=TDevelop/Part Name=TDevelop Part [PropertyDef::X-TDevelop-Scope] -Type=QString +Type=TQString [PropertyDef::X-TDevelop-ProgrammingLanguages] Type=QStringList [PropertyDef::X-TDevelop-Args] -Type=QString +Type=TQString @@ -2032,11 +2032,11 @@ load the library and get a pointer to its factory object: KService *service = ... -QString libName = QFile::encodeName(service->library()); +TQString libName = QFile::encodeName(service->library()); KLibFactory *factory = KLibLoader::self()->factory(libName); if (!factory) { - QString name = service->name(); - QString errorMessage = KLibLoader::self()->lastErrorMessage(); + TQString name = service->name(); + TQString errorMessage = KLibLoader::self()->lastErrorMessage(); KMessageBox::error(0, i18n("There was an error loading service %1.\n" "The diagnostics from libtool is:\n%2") .arg(name).arg(errorMessage); @@ -2054,7 +2054,7 @@ its create() method: if (factory->inherits("KParts::Factory")) { KParts::Factory *partFactory = static_cast<KParts::Factory*>(factory); - QObject *obj = partFactory->createPart(parentWidget, widgetName, + TQObject *obj = partFactory->createPart(parentWidget, widgetName, parent, name, "KParts::ReadOnlyPart"); ... } else { @@ -2142,7 +2142,7 @@ class: DCOPClient *client = kapp->dcopClient(); client->attach(); if (!client->isApplicationRegistered("tdeio_uiserver")) { - QString error; + TQString error; if (TDEApplication::startServiceByName("tdeio_uiserver", QStringList(), &error)) cout << "Starting kioserver failed with message " << error << endl; } @@ -2176,7 +2176,7 @@ the file name of its desktop file as argument, i.e. in this case All these calls take a list of URLs as a second argument, which is given to the service on the command line. The third argument is a pointer to a -QString. If starting the service fails, this argument +TQString. If starting the service fails, this argument is set to a translated error message. @@ -2385,7 +2385,7 @@ contents of a local file. For remote files, there is a further possibility: KURL url("http://developer.kde.org/favicon.ico"); -QString type = TDEIO::NetAccess::mimetype(url); +TQString type = TDEIO::NetAccess::mimetype(url); if (type == KMimeType::defaultMimeType()) cout << "Could not find out type" << endl; else @@ -2514,7 +2514,7 @@ and returns the associated icon. KURL url("ftp://ftp.kde.org/pub/incoming/wibble.c"); -QString icon = KMimeType::iconForURL(url); +TQString icon = KMimeType::iconForURL(url); @@ -2652,7 +2652,7 @@ Renames a file. -TDEIO::symlink(const QString &target, const KURL &dest, +TDEIO::symlink(const TQString &target, const KURL &dest, bool overwrite, bool showProgressInfo) Creates a symbolic link. @@ -2892,7 +2892,7 @@ files regardless of their location is the following code snippet: KURL url; url = ...; -QString tempFile; +TQString tempFile; if (TDEIO::NetAccess::download(url, tempFile) { // load the file with the name tempFile TDEIO::NetAccess::removeTempFile(tempFile); @@ -2948,12 +2948,12 @@ void FooClass::printModifiedDate() void FooClass::transferResult(TDEIO::Job *job) { - QString mimetype; + TQString mimetype; if (job->error()) job->showErrorDialog(); else { TDEIO::TransferJob *transferJob = (TDEIO::TransferJob*) job; - QString modified = transferJob->queryMetaData("modified"); + TQString modified = transferJob->queryMetaData("modified"); cout << "Last modified: " << modified << endl; } @@ -3193,7 +3193,7 @@ or not (i.e. the default implementation returns an error). copy(const KURL &url, const KURL &dest, int permissions, bool overwrite) Creates a symbolic link. -void symlink(const QString &target, const KURL &dest, bool overwrite) +void symlink(const TQString &target, const KURL &dest, bool overwrite) -- cgit v1.2.3