diff options
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqmime.cpp')
-rw-r--r-- | tqtinterface/qt4/src/kernel/tqmime.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqmime.cpp b/tqtinterface/qt4/src/kernel/tqmime.cpp index 46d07d3..943ba55 100644 --- a/tqtinterface/qt4/src/kernel/tqmime.cpp +++ b/tqtinterface/qt4/src/kernel/tqmime.cpp @@ -747,7 +747,7 @@ public: TQMessageBox) always use the default factory. A factory can also be used as a container to store data associated - with a name. This technique is useful whenever rich text tqcontains + 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: @@ -817,7 +817,7 @@ TQMimeSource* TQMimeSourceFactory::dataInternal(const TQString& abs_name, const TQString e = fi.extension(FALSE); TQCString mimetype = "application/octet-stream"; const char* imgfmt; - if ( extensions.tqcontains(e) ) + if ( extensions.contains(e) ) mimetype = extensions[e].latin1(); else if ( ( imgfmt = TQImage::imageFormat( abs_name ) ) ) mimetype = TQCString("image/")+TQCString(imgfmt).lower(); @@ -833,7 +833,7 @@ TQMimeSource* TQMimeSourceFactory::dataInternal(const TQString& abs_name, const } } - // we didn't tqfind the mime-source, so ask the default factory for + // we didn't find the mime-source, so ask the default factory for // the mime-source (this one will iterate over all installed ones) // // this looks dangerous, as this dataInternal() function will be @@ -894,7 +894,7 @@ TQMimeSource* TQMimeSourceFactory::dataInternal(const TQString& abs_name, const */ const TQMimeSource* TQMimeSourceFactory::data(const TQString& abs_name) const { - if ( d->stored.tqcontains(abs_name) ) + if ( d->stored.contains(abs_name) ) return d->stored[abs_name]; TQMimeSource* r = 0; @@ -987,7 +987,7 @@ void TQMimeSourceFactory::addFilePath( const TQString& p ) */ void TQMimeSourceFactory::setExtensionType( const TQString& ext, const char* mimetype ) { - d->extensions.tqreplace(ext, mimetype); + d->extensions.replace(ext, mimetype); } /*! @@ -1074,9 +1074,9 @@ void TQMimeSourceFactory::setPixmap( const TQString& abs_name, const TQPixmap& p */ void TQMimeSourceFactory::setData( const TQString& abs_name, TQMimeSource* data ) { - if ( d->stored.tqcontains(abs_name) ) + if ( d->stored.contains(abs_name) ) delete d->stored[abs_name]; - d->stored.tqreplace(abs_name,data); + d->stored.replace(abs_name,data); } |