summaryrefslogtreecommitdiffstats
path: root/src/kvilib/irc/kvi_mirccntrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/irc/kvi_mirccntrl.cpp')
-rw-r--r--src/kvilib/irc/kvi_mirccntrl.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kvilib/irc/kvi_mirccntrl.cpp b/src/kvilib/irc/kvi_mirccntrl.cpp
index fbf3c2d3..21b5258a 100644
--- a/src/kvilib/irc/kvi_mirccntrl.cpp
+++ b/src/kvilib/irc/kvi_mirccntrl.cpp
@@ -155,7 +155,7 @@ KVILIB_API const kvi_wchar_t * getColorBytesW(const kvi_wchar_t *data_ptr,unsign
}
}
-KVILIB_API unsigned int getUnicodeColorBytes(const QString &szData,unsigned int charIdx,unsigned char *byte_1,unsigned char *byte_2)
+KVILIB_API unsigned int getUnicodeColorBytes(const TQString &szData,unsigned int charIdx,unsigned char *byte_1,unsigned char *byte_2)
{
//
// Scans the szData for a mIrc color code XX,XX
@@ -169,7 +169,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const QString &szData,unsigned int
return charIdx;
}
- unsigned short c = szData[(int)charIdx].unicode();
+ unsigned short c = szData[(int)charIdx].tqunicode();
//First we can have a digit or a coma
if(((c < '0') || (c > '9')))
@@ -189,7 +189,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const QString &szData,unsigned int
return charIdx;
}
- c = szData[(int)charIdx].unicode();
+ c = szData[(int)charIdx].tqunicode();
if(((c < '0') || (c > '9')) && (c != ','))
{
@@ -207,7 +207,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const QString &szData,unsigned int
(*byte_2)=KVI_NOCHANGE;
return charIdx;
}
- c = szData[(int)charIdx].unicode();
+ c = szData[(int)charIdx].tqunicode();
}
if(c == ',')
@@ -218,7 +218,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const QString &szData,unsigned int
(*byte_2)=KVI_NOCHANGE;
return charIdx;
}
- c = szData[(int)charIdx].unicode();
+ c = szData[(int)charIdx].tqunicode();
} else {
(*byte_2)=KVI_NOCHANGE;
return charIdx;
@@ -227,7 +227,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const QString &szData,unsigned int
if((c < '0') || (c > '9'))
{
(*byte_2)=KVI_NOCHANGE;
- if(szData[(int)(charIdx-1)].unicode()==',')
+ if(szData[(int)(charIdx-1)].tqunicode()==',')
return charIdx-1;
else
return charIdx;
@@ -237,7 +237,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const QString &szData,unsigned int
(*byte_2)=c-'0';
charIdx++;
if(charIdx >= szData.length())return charIdx;
- c = szData[(int)charIdx].unicode();
+ c = szData[(int)charIdx].tqunicode();
if((c >= '0') && (c <='9'))
{
@@ -251,9 +251,9 @@ KVILIB_API unsigned int getUnicodeColorBytes(const QString &szData,unsigned int
namespace KviMircCntrl
{
- QString stripControlBytes(const QString &szData)
+ TQString stripControlBytes(const TQString &szData)
{
- QString ret;
+ TQString ret;
int i = 0;
int l = szData.length();
@@ -262,7 +262,7 @@ namespace KviMircCntrl
unsigned char b2;
while(i < l)
{
- switch(szData[i].unicode())
+ switch(szData[i].tqunicode())
{
case KVI_TEXT_UNDERLINE:
case KVI_TEXT_BOLD:
@@ -288,7 +288,7 @@ namespace KviMircCntrl
i++;
while(i < l)
{
- if(szData[i].unicode() == ' ')break;
+ if(szData[i].tqunicode() == ' ')break;
else i++;
}
begin = i;