diff options
Diffstat (limited to 'doc/man/man3/tqmimesourcefactory.3qt')
-rw-r--r-- | doc/man/man3/tqmimesourcefactory.3qt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/man/man3/tqmimesourcefactory.3qt b/doc/man/man3/tqmimesourcefactory.3qt index c1f5db94c..7f66d1202 100644 --- a/doc/man/man3/tqmimesourcefactory.3qt +++ b/doc/man/man3/tqmimesourcefactory.3qt @@ -78,7 +78,7 @@ A TQMimeSourceFactory provides an abstract interface to a collection of informat .PP The base TQMimeSourceFactory can be used in two ways: as an abstraction of a collection of files or as specifically stored data. For it to access files, call setFilePath() before accessing data. For stored data, call setData() for each item (there are also convenience functions, e.g. setText(), setImage() and setPixmap(), that simply call setData() with appropriate parameters). .PP -The rich text widgets, TQTextEdit and TQTextBrowser, use TQMimeSourceFactory to resolve references such as images or links within rich text documents. They either access the default factory (see defaultFactory()) or their own (see TQTextEdit::setMimeSourceFactory()). Other classes that are capable of displaying rich text (such as QLabel, QWhatsThis or QMessageBox) always use the default factory. +The rich text widgets, TQTextEdit and TQTextBrowser, use TQMimeSourceFactory to resolve references such as images or links within rich text documents. They either access the default factory (see defaultFactory()) or their own (see TQTextEdit::setMimeSourceFactory()). Other classes that are capable of displaying rich text (such as TQLabel, TQWhatsThis or QMessageBox) always use the default factory. .PP A factory can also be used as a container to store data associated with a name. This technique is useful whenever rich text contains images that are stored in the program itself, not loaded from the hard disk. Your program may, for example, define some image data as: .PP @@ -94,7 +94,7 @@ A factory can also be used as a container to store data associated with a name. .br .fi .PP -To be able to use this image within some rich text, for example inside a QLabel, you must create a TQImage from the raw data and insert it into the factory with a unique name: +To be able to use this image within some rich text, for example inside a TQLabel, you must create a TQImage from the raw data and insert it into the factory with a unique name: .PP .nf .br @@ -102,11 +102,11 @@ To be able to use this image within some rich text, for example inside a QLabel, .br .fi .PP -Now you can create a rich text QLabel with +Now you can create a rich text TQLabel with .PP .nf .br - QLabel* label = new QLabel( + TQLabel* label = new TQLabel( .br "Rich text with embedded image:<img source=\\"myimage\\">" .br @@ -166,7 +166,7 @@ This is an overloaded member function, provided for convenience. It behaves esse .PP A convenience function. See data(const TQString& abs_name). The file name is given in \fIabs_or_rel_name\fR and the path is in \fIcontext\fR. .SH "TQMimeSourceFactory * TQMimeSourceFactory::defaultFactory ()\fC [static]\fR" -Returns the application-wide default mime source factory. This factory is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to resolve named references within rich text documents. It serves also as the initial factory for the more complex render widgets, TQTextEdit and TQTextBrowser. +Returns the application-wide default mime source factory. This factory is used by rich text rendering classes such as TQSimpleRichText, TQWhatsThis and QMessageBox to resolve named references within rich text documents. It serves also as the initial factory for the more complex render widgets, TQTextEdit and TQTextBrowser. .PP See also setDefaultFactory(). .PP |