summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/libgroupwise/rtf.ll
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/groupwise/libgroupwise/rtf.ll')
-rw-r--r--kopete/protocols/groupwise/libgroupwise/rtf.ll16
1 files changed, 8 insertions, 8 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/rtf.ll b/kopete/protocols/groupwise/libgroupwise/rtf.ll
index 70d4daa5..7f2f1841 100644
--- a/kopete/protocols/groupwise/libgroupwise/rtf.ll
+++ b/kopete/protocols/groupwise/libgroupwise/rtf.ll
@@ -67,17 +67,17 @@ void ParStyle::clearFormatting()
QString RTF2HTML::quoteString(const QString &_str, quoteMode mode)
{
QString str = _str;
- str.tqreplace(QRegExp("&"), "&");
- str.tqreplace(QRegExp("<"), "&lt;");
- str.tqreplace(QRegExp(">"), "&gt;");
- str.tqreplace(QRegExp("\""), "&quot;");
- str.tqreplace(QRegExp("\r"), "");
+ str.replace(QRegExp("&"), "&amp;");
+ str.replace(QRegExp("<"), "&lt;");
+ str.replace(QRegExp(">"), "&gt;");
+ str.replace(QRegExp("\""), "&quot;");
+ str.replace(QRegExp("\r"), "");
switch (mode){
case quoteHTML:
- str.tqreplace(QRegExp("\n"), "<br>\n");
+ str.replace(QRegExp("\n"), "<br>\n");
break;
case quoteXML:
- str.tqreplace(QRegExp("\n"), "<br/>\n");
+ str.replace(QRegExp("\n"), "<br/>\n");
break;
default:
break;
@@ -94,7 +94,7 @@ QString RTF2HTML::quoteString(const QString &_str, quoteMode mode)
QString s = " ";
for (int i = 1; i < len; i++)
s += "&nbsp;";
- str.tqreplace(pos, len, s);
+ str.replace(pos, len, s);
}
return str;
}