summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/textblock.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
commit0813b39aed2cf4c84157a22c4c9594336d93d412 (patch)
tree0f6157f9c9ecc6ed26cb98f058219a8021d3f4a6 /umbrello/umbrello/textblock.cpp
parent35dc58791106d7a1864264063df5f3ee3f1f0f15 (diff)
downloadtdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.tar.gz
tdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/textblock.cpp')
-rw-r--r--umbrello/umbrello/textblock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/umbrello/umbrello/textblock.cpp b/umbrello/umbrello/textblock.cpp
index 1beae001..1a66c113 100644
--- a/umbrello/umbrello/textblock.cpp
+++ b/umbrello/umbrello/textblock.cpp
@@ -205,12 +205,12 @@ TQString TextBlock::formatMultiLineText ( const TQString &work, const TQString &
TQString output = "";
TQString text = work;
TQString endLine = getNewLineEndingChars();
- int matches = text.tqcontains(TQRegExp(breakStr));
+ int matches = text.contains(TQRegExp(breakStr));
if(matches)
{
// check that last part of string matches, if not, then
// we have to tack on extra match
- if(!text.tqcontains(TQRegExp(breakStr+"\\$")))
+ if(!text.contains(TQRegExp(breakStr+"\\$")))
matches++;
for(int i=0; i < matches; i++)
@@ -280,7 +280,7 @@ void TextBlock::setAttributesFromNode (TQDomElement & root ) {
// entity.
TQString TextBlock::encodeText(const TQString& text, const TQString &endLine) {
TQString encoded = text;
- encoded.tqreplace(TQRegExp(endLine),"&#010;");
+ encoded.replace(TQRegExp(endLine),"&#010;");
return encoded;
}
@@ -289,7 +289,7 @@ TQString TextBlock::encodeText(const TQString& text, const TQString &endLine) {
// entity.
TQString TextBlock::decodeText(const TQString& text, const TQString &endLine) {
TQString decoded = text;
- decoded.tqreplace(TQRegExp("&#010;"),endLine);
+ decoded.replace(TQRegExp("&#010;"),endLine);
return decoded;
}