summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrBackground.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter/KPrBackground.cpp')
-rw-r--r--kpresenter/KPrBackground.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpresenter/KPrBackground.cpp b/kpresenter/KPrBackground.cpp
index e2d08fa29..661020459 100644
--- a/kpresenter/KPrBackground.cpp
+++ b/kpresenter/KPrBackground.cpp
@@ -276,7 +276,7 @@ void KPrBackGround::loadOasis(KoOasisContext & context )
if ( !href.isEmpty() )
{
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.
@@ -435,11 +435,11 @@ void KPrBackGround::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 );
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 );
}
}
if ( openPic )
@@ -481,11 +481,11 @@ void KPrBackGround::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 );
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 );
}
}
//KPClipartKey clipKey( _fileName, TQDateTime( pictureCollection()->tmpDate(),