summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/commonui/context.cpp')
-rw-r--r--kbabel/commonui/context.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kbabel/commonui/context.cpp b/kbabel/commonui/context.cpp
index 4c91d1ad..0700b895 100644
--- a/kbabel/commonui/context.cpp
+++ b/kbabel/commonui/context.cpp
@@ -160,14 +160,14 @@ TQValueList<ContextInfo> SourceContext::resolvePath( const TQString& packageDir,
if ( !poDir.isEmpty() )
{
- pref.tqreplace( "@POFILEDIR@", poDir );
+ pref.replace( "@POFILEDIR@", poDir );
}
- else if ( pref.tqfind( "@POFILEDIR@ " ) != -1 )
+ else if ( pref.find( "@POFILEDIR@ " ) != -1 )
continue; // No need to keep this path pattern, as we have no PO file dir
- pref.tqreplace( "@PACKAGEDIR@", packageDir);
- pref.tqreplace( "@PACKAGE@", packageName);
- pref.tqreplace( "@CODEROOT@", _project->settings()->codeRoot());
+ pref.replace( "@PACKAGEDIR@", packageDir);
+ pref.replace( "@PACKAGE@", packageName);
+ pref.replace( "@CODEROOT@", _project->settings()->codeRoot());
prefixes.append(pref);
}
@@ -191,7 +191,7 @@ TQValueList<ContextInfo> SourceContext::resolvePath( const TQString& packageDir,
ref.line = re.cap(2).toInt();
ref.path = re.cap(1);
// ### TODO KDE4: perhaps we should not do the replace if compiled for Windows
- ref.path.tqreplace( TQChar( '\\' ), TQChar( '/' ) );
+ ref.path.replace( TQChar( '\\' ), TQChar( '/' ) );
rawRefList.append( ref );
}
}
@@ -223,7 +223,7 @@ TQValueList<ContextInfo> SourceContext::resolvePath( const TQString& packageDir,
ref.line = res.cap(2).toInt();
ref.path = res.cap(1);
// ### TODO KDE4: perhaps we should not do the replace if compiled for Windows
- ref.path.tqreplace( TQChar( '\\' ), TQChar( '/' ) );
+ ref.path.replace( TQChar( '\\' ), TQChar( '/' ) );
rawRefList.append( ref );
}
}
@@ -240,7 +240,7 @@ TQValueList<ContextInfo> SourceContext::resolvePath( const TQString& packageDir,
for ( TQStringList::const_iterator it1 = prefixes.constBegin(); it1 != prefixes.constEnd(); ++it1 )
{
TQString path = (*it1);
- path.tqreplace( "@COMMENTPATH@", fileName);
+ path.replace( "@COMMENTPATH@", fileName);
//kdDebug() << "CONTEXT PATH: " << path << endl; // DEBUG
TQFileInfo pathInfo( path );
@@ -302,4 +302,4 @@ void SourceContext::setProject( KBabel::Project::Ptr project )
#include "context.moc"
-// kate: space-indent on; indent-width 4; tqreplace-tabs on;
+// kate: space-indent on; indent-width 4; replace-tabs on;