summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/ksparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/irc/ksparser.cpp')
-rw-r--r--kopete/protocols/irc/ksparser.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kopete/protocols/irc/ksparser.cpp b/kopete/protocols/irc/ksparser.cpp
index ab7f1127..79ff605e 100644
--- a/kopete/protocols/irc/ksparser.cpp
+++ b/kopete/protocols/irc/ksparser.cpp
@@ -25,7 +25,7 @@ Modified by Jason Keirstead <jason@keirstead.org>
#include <kdebug.h>
#include <tqbuffer.h>
#include <tqdatastream.h>
-#include <stylesheet.h>
+#include <tqstylesheet.h>
#include "ksparser.h"
#include <stdlib.h>
@@ -117,17 +117,17 @@ TQCString KSParser::_parse(const TQCString &message)
}
else
{
- toAppend = popTag(TQString::fromLatin1("span"));
+ toAppend = popTag(TQString::tqfromLatin1("span"));
}
break;
case 0x07: //System bell: ^G
- KNotifyClient::beep( TQString::fromLatin1("IRC beep event received in a message") );
+ KNotifyClient::beep( TQString::tqfromLatin1("IRC beep event received in a message") );
break;
case '\t': // 0x09
- toAppend = TQString::fromLatin1("&nbsp;&nbsp;&nbsp;&nbsp;");
+ toAppend = TQString::tqfromLatin1("&nbsp;&nbsp;&nbsp;&nbsp;");
break;
case '\n': // 0x0D
- toAppend= TQString::fromLatin1("<br/>");
+ toAppend= TQString::tqfromLatin1("<br/>");
break;
case 0x0D: // Italics: ^N
toAppend = toggleTag("i");
@@ -145,14 +145,14 @@ TQCString KSParser::_parse(const TQCString &message)
toAppend = toggleTag("u");
break;
case '<':
- toAppend = TQString::fromLatin1("&lt;");
+ toAppend = TQString::tqfromLatin1("&lt;");
break;
case '>':
- toAppend = TQString::fromLatin1("&gt;");
+ toAppend = TQString::tqfromLatin1("&gt;");
break;
default:
if (cur < TQChar(' ')) // search for control characters
- toAppend = TQString::fromLatin1("&lt;%1&gt;").arg(cur, 2, 16).upper();
+ toAppend = TQString::tqfromLatin1("&lt;%1&gt;").tqarg(cur, 2, 16).upper();
else
toAppend = TQStyleSheet::escape(cur);
}
@@ -193,14 +193,14 @@ TQString KSParser::pushColorTag(const TQColor &fgColor, const TQColor &bgColor)
TQString tagStyle;
if (fgColor.isValid())
- tagStyle += TQString::fromLatin1("color:%1;").arg(fgColor.name());
+ tagStyle += TQString::tqfromLatin1("color:%1;").tqarg(fgColor.name());
if (bgColor.isValid())
- tagStyle += TQString::fromLatin1("background-color:%1;").arg(bgColor.name());
+ tagStyle += TQString::tqfromLatin1("background-color:%1;").tqarg(bgColor.name());
if(!tagStyle.isEmpty())
- tagStyle = TQString::fromLatin1("style=\"%1\"").arg(tagStyle);
+ tagStyle = TQString::tqfromLatin1("style=\"%1\"").tqarg(tagStyle);
- return pushTag(TQString::fromLatin1("span"), tagStyle);;
+ return pushTag(TQString::tqfromLatin1("span"), tagStyle);;
}
TQString KSParser::popTag(const TQString &tag)