summaryrefslogtreecommitdiffstats
path: root/quanta/messages/annotationoutput.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit36c36b53a129509d56fdaa0a7c9fcbcacd0c5826 (patch)
tree629d3942958745660e36c30b0d6139af9459c0f8 /quanta/messages/annotationoutput.cpp
parent929d7ae4f69d62b8f1f6d3506adf75f017753935 (diff)
downloadtdewebdev-36c36b53a129509d56fdaa0a7c9fcbcacd0c5826.tar.gz
tdewebdev-36c36b53a129509d56fdaa0a7c9fcbcacd0c5826.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/messages/annotationoutput.cpp')
-rw-r--r--quanta/messages/annotationoutput.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/quanta/messages/annotationoutput.cpp b/quanta/messages/annotationoutput.cpp
index 0bca2cf2..57a8e84c 100644
--- a/quanta/messages/annotationoutput.cpp
+++ b/quanta/messages/annotationoutput.cpp
@@ -85,7 +85,7 @@ void AnnotationOutput::insertAnnotation(uint line, const TQString& fileName, con
{
line++;
TQString s = i18n("Line %1: %2").tqarg(line).tqarg(annotation.first);
- s.tqreplace('\n', ' ');
+ s.replace('\n', ' ');
m_currentFileAnnotations->showMessage(line, 1, fileName, s);
}
@@ -148,13 +148,13 @@ void AnnotationOutput::readAnnotations()
KURL u = baseURL;
QuantaCommon::setUrl(u, fileName);
u = QExtFileInfo::toAbsolute(u, baseURL);
- if (Project::ref()->tqcontains(u))
+ if (Project::ref()->contains(u))
{
bool ok;
int line = el.attribute("line").toInt(&ok, 10);
TQString text = el.attribute("text");
TQString receiver = el.attribute("receiver");
- text.tqreplace('\n',' ');
+ text.replace('\n',' ');
TQString lineText = TQString("%1").tqarg(line);
if (lineText.length() < 20)
{
@@ -170,12 +170,12 @@ void AnnotationOutput::readAnnotations()
m_fileNames[fileIt] = u.url();
}
KListViewItem *it = new KListViewItem(fileIt, fileIt, text, lineText);
- if (openedItems.tqcontains(fileName))
+ if (openedItems.contains(fileName))
fileIt->setOpen(true);
m_fileNames[it] = u.url();
m_lines[it] = line;
- if (!yourself.isEmpty() && (receiver == yourself || roles.tqcontains(receiver)))
+ if (!yourself.isEmpty() && (receiver == yourself || roles.contains(receiver)))
{
m_yourAnnotationsNum++;
KListViewItem *fileIt = m_yourFileItems[fileName];
@@ -186,7 +186,7 @@ void AnnotationOutput::readAnnotations()
m_yourFileNames[fileIt] = u.url();
}
KListViewItem *it = new KListViewItem(fileIt, fileIt, text, lineText);
- if (yourOpenedItems.tqcontains(fileName))
+ if (yourOpenedItems.contains(fileName))
fileIt->setOpen(true);
m_yourFileNames[it] = u.url();
m_yourLines[it] = line;
@@ -234,7 +234,7 @@ void AnnotationOutput::writeAnnotations(const TQString &fileName, const TQMap<ui
TQString text = el.attribute("text");
bool ok;
int line = el.attribute("line").toInt(&ok, 10);
- if (!annotations.tqcontains(line) || (annotations[line].first != text))
+ if (!annotations.contains(line) || (annotations[line].first != text))
{
n.parentNode().removeChild(n);
modified = true;
@@ -307,7 +307,7 @@ void AnnotationOutput::updateAnnotationForFile(const KURL& url)
while (!stream.atEnd())
{
line = stream.readLine();
- int pos = line.tqfind("@annotation");
+ int pos = line.find("@annotation");
if (pos != -1)
{
TQString receiver;
@@ -315,7 +315,7 @@ void AnnotationOutput::updateAnnotationForFile(const KURL& url)
if (line[pos] == '(')
{
int p = pos;
- pos = line.tqfind(')');
+ pos = line.find(')');
if (pos != -1)
{
receiver = line.mid(p + 1, pos - p - 1);
@@ -323,7 +323,7 @@ void AnnotationOutput::updateAnnotationForFile(const KURL& url)
}
} else
pos++;
- int pos2 = line.tqfind(rx);
+ int pos2 = line.find(rx);
annotations.insert(i, tqMakePair(line.mid(pos, pos2 - pos).stripWhiteSpace(), receiver));
}
++i;