diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /kpresenter/KPrPixmapObject.cpp | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrPixmapObject.cpp')
-rw-r--r-- | kpresenter/KPrPixmapObject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kpresenter/KPrPixmapObject.cpp b/kpresenter/KPrPixmapObject.cpp index d64c5b60..0a4c8921 100644 --- a/kpresenter/KPrPixmapObject.cpp +++ b/kpresenter/KPrPixmapObject.cpp @@ -359,7 +359,7 @@ void KPrPixmapObject::loadOasis(const TQDomElement &element, KoOasisContext & co if ( !href.isEmpty() /*&& href[0] == '#'*/ ) { TQString strExtension; - const int result=href.tqfindRev("."); + const int result=href.findRev("."); if (result>=0) { strExtension=href.mid(result+1); // As we are using KoPicture, the extension should be without the dot. @@ -416,12 +416,12 @@ double KPrPixmapObject::load(const TQDomElement &element) _fileName=e.attribute("filename"); if ( !_fileName.isEmpty() ) { - if ( int _envVarB = _fileName.tqfind( '$' ) >= 0 ) + if ( int _envVarB = _fileName.find( '$' ) >= 0 ) { - int _envVarE = _fileName.tqfind( '/', _envVarB ); + int _envVarE = _fileName.find( '/', _envVarB ); // ### FIXME: it should be TQString::local8Bit instead of TQFile::encodeName, shouldn't it? TQString path = getenv( TQFile::encodeName(_fileName.mid( _envVarB, _envVarE-_envVarB )) ); - _fileName.tqreplace( _envVarB-1, _envVarE-_envVarB+1, path ); + _fileName.replace( _envVarB-1, _envVarE-_envVarB+1, path ); } } |