diff options
Diffstat (limited to 'doc/kdearch/index.docbook')
-rw-r--r-- | doc/kdearch/index.docbook | 50 |
1 files changed, 25 insertions, 25 deletions
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. <listitem><formalpara><title><ulink url="kdeapi:tdeui/KPixmapIO">KPixmapIO</ulink></title> <para> -Fast <classname>QImage</classname> to <classname>QPixmap</classname> conversion. +Fast <classname>TQImage</classname> to <classname>QPixmap</classname> conversion. </para> </formalpara></listitem> @@ -684,7 +684,7 @@ The central graphics class for 2D painting with Qt is draw on a <ulink url="kdeapi:qt/QPaintDevice">QPaintDevice</ulink>. There are three possible paint devices implemented: One is -<ulink url="kdeapi:qt/QWidget">QWidget</ulink> +<ulink url="kdeapi:qt/TQWidget">TQWidget</ulink> which represents a widget on the screen. The second is <ulink url="kdeapi:qt/QPrinter">QPrinter</ulink> 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.</para> </listitem> <listitem> -<para>QBrush::QBrush(const QColor &, BrushStyle) - This creates a colored brush +<para>QBrush::QBrush(const TQColor &, BrushStyle) - This creates a colored brush with one of the patterns shown below.</para> </listitem> <listitem> -<para>QBrush::QBrush(const QColor &, const QPixmap) - This creates a colored +<para>QBrush::QBrush(const TQColor &, const QPixmap) - This creates a colored brush with the custom pattern you give as second parameter.</para> </listitem> </itemizedlist> @@ -1000,7 +1000,7 @@ QPainter::setBrushOrigin(). <para> Colors play a role both when stroking curves and when filling shapes. In Qt, colors are represented by the class -<ulink url="kdeapi:qt/QColor">QColor</ulink>. Qt does not support +<ulink url="kdeapi:qt/TQColor">TQColor</ulink>. 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. </para> <para> -In contrast, <ulink url="kdeapi:qt/QImage">QImage</ulink> objects +In contrast, <ulink url="kdeapi:qt/TQImage">TQImage</ulink> 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. </para> @@ -1123,7 +1123,7 @@ require dithering. <para> 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 <ulink url="kdeapi:qt/Qt#AlignmentFlags-enum">Qt::AlignmentFlags</ulink> @@ -1658,7 +1658,7 @@ ask the client's factory for it: <programlisting> 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 </programlisting> <para> @@ -2032,11 +2032,11 @@ load the library and get a pointer to its factory object: <programlisting> 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: <programlisting> 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 <para> 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 -<classname>QString</classname>. If starting the service fails, this argument +<classname>TQString</classname>. If starting the service fails, this argument is set to a translated error message. </para> @@ -2385,7 +2385,7 @@ contents of a local file. For remote files, there is a further possibility: <programlisting> 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. <programlisting> KURL url("ftp://ftp.kde.org/pub/incoming/wibble.c"); -QString icon = KMimeType::iconForURL(url); +TQString icon = KMimeType::iconForURL(url); </programlisting> <para> @@ -2652,7 +2652,7 @@ Renames a file. </para></listitem> </varlistentry> -<varlistentry><term>TDEIO::symlink(const QString &target, const KURL &dest, +<varlistentry><term>TDEIO::symlink(const TQString &target, const KURL &dest, bool overwrite, bool showProgressInfo)</term> <listitem><para> Creates a symbolic link. @@ -2892,7 +2892,7 @@ files regardless of their location is the following code snippet: <programlisting> 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; } </programlisting> @@ -3193,7 +3193,7 @@ or not (i.e. the default implementation returns an error). <listitem><para>copy(const KURL &url, const KURL &dest, int permissions, bool overwrite)</para></listitem></varlistentry> <varlistentry><term>Creates a symbolic link.</term> -<listitem><para>void symlink(const QString &target, const KURL &dest, bool overwrite)</para></listitem></varlistentry> +<listitem><para>void symlink(const TQString &target, const KURL &dest, bool overwrite)</para></listitem></varlistentry> </variablelist> |