summaryrefslogtreecommitdiffstats
path: root/parts/grepview/grepviewwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/grepview/grepviewwidget.cpp')
-rw-r--r--parts/grepview/grepviewwidget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/parts/grepview/grepviewwidget.cpp b/parts/grepview/grepviewwidget.cpp
index e565a7d8..be31174f 100644
--- a/parts/grepview/grepviewwidget.cpp
+++ b/parts/grepview/grepviewwidget.cpp
@@ -59,7 +59,7 @@ GrepListBoxItem::GrepListBoxItem(const TQString &fileName, const TQString &lineN
fileName(fileName), lineNumber(lineNumber), text(text.stripWhiteSpace()),
show(showFilename)
{
- this->text.tqreplace( TQChar('\t'), TQString(" ") );
+ this->text.replace( TQChar('\t'), TQString(" ") );
}
@@ -174,7 +174,7 @@ void GrepViewWidget::showDialog()
if(selectIface && selectIface->hasSelection())
{
TQString selText = selectIface->selection();
- if(!selText.tqcontains('\n'))
+ if(!selText.contains('\n'))
{
grepdlg->setPattern(selText);
}
@@ -201,7 +201,7 @@ static TQString escape(const TQString &str)
for (uint i=0; i < str.length(); ++i)
{
- if (escaped.tqfind(str[i]) != -1)
+ if (escaped.find(str[i]) != -1)
res += "\\";
res += str[i];
}
@@ -305,7 +305,7 @@ void GrepViewWidget::searchActivated()
}
command = "cat ";
- command += tmpFilePath.tqreplace(' ', "\\ ");
+ command += tmpFilePath.replace(' ', "\\ ");
}
}
else
@@ -319,7 +319,7 @@ void GrepViewWidget::searchActivated()
files += " -o -name " + KShellProcess::quote(*it);
}
- TQString filepattern = "tqfind ";
+ TQString filepattern = "find ";
filepattern += KShellProcess::quote(grepdlg->directoryString());
if (!grepdlg->recursiveFlag())
filepattern += " -maxdepth 1";
@@ -366,9 +366,9 @@ void GrepViewWidget::searchActivated()
m_lastPattern = grepdlg->patternString();
TQString pattern = grepdlg->templateString();
if (grepdlg->regexpFlag())
- pattern.tqreplace(TQRegExp("%s"), grepdlg->patternString());
+ pattern.replace(TQRegExp("%s"), grepdlg->patternString());
else
- pattern.tqreplace(TQRegExp("%s"), escape( grepdlg->patternString() ) );
+ pattern.replace(TQRegExp("%s"), escape( grepdlg->patternString() ) );
command += KShellProcess::quote(pattern);
m_curOutput->startJob("", command);
@@ -402,11 +402,11 @@ void GrepViewProcessWidget::insertStdoutLine(const TQCString &line)
{
str = TQString::fromLocal8Bit( line );
}
- if ( (pos = str.tqfind(':')) != -1)
+ if ( (pos = str.find(':')) != -1)
{
filename = str.left(pos);
str.remove( 0, pos+1 );
- if ( ( pos = str.tqfind(':') ) != -1)
+ if ( ( pos = str.find(':') ) != -1)
{
linenumber = str.left(pos);
str.remove( 0, pos+1 );