summaryrefslogtreecommitdiffstats
path: root/ksirc/ksparser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /ksirc/ksparser.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/ksparser.cpp')
-rw-r--r--ksirc/ksparser.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/ksirc/ksparser.cpp b/ksirc/ksparser.cpp
index a02bd3bd..cfdf59f5 100644
--- a/ksirc/ksparser.cpp
+++ b/ksirc/ksparser.cpp
@@ -63,12 +63,12 @@ TQString KSParser::parse( const TQString &message )
TQString at;
TQColor c = ircColor(fg);
if ( c.isValid() ) {
- at += TQString( "color=\"%1\" " ).arg( c.name() );
+ at += TQString( "color=\"%1\" " ).tqarg( c.name() );
}
c = ircColor(bg);
if ( c.isValid() ) {
- at += TQString( "bgcolor=\"%1\" " ).arg( c.name() );
+ at += TQString( "bgcolor=\"%1\" " ).tqarg( c.name() );
}
if(at.length() > 0){
res += pushTag( "font", at );
@@ -108,13 +108,13 @@ TQString KSParser::parse( const TQString &message )
res += toggleTag( "u" );
break;
case 'n':
- res += toggleTag( "font", TQString( "color=\"%1\"" ).arg( ksopts->nickForeground.name() ) );
+ res += toggleTag( "font", TQString( "color=\"%1\"" ).tqarg( ksopts->nickForeground.name() ) );
break;
case 'o':
- res += pushTag( "font", TQString( "color=\"%1\"" ).arg( ksopts->msgContainNick.name() ) );
+ res += pushTag( "font", TQString( "color=\"%1\"" ).tqarg( ksopts->msgContainNick.name() ) );
break;
case '#':
- res += pushTag( "font", TQString( "color=\"#%1\"" ).arg( message.mid(i, 6) ));
+ res += pushTag( "font", TQString( "color=\"#%1\"" ).tqarg( message.mid(i, 6) ));
i+=6;
break;
case '~':
@@ -141,10 +141,10 @@ TQString KSParser::pushTag(const TQString &tag, const TQString &attributes)
{
TQString res;
m_tags.push(tag);
- if (!m_attributes.contains(tag))
+ if (!m_attributes.tqcontains(tag))
m_attributes.insert(tag, attributes);
else if (!attributes.isEmpty())
- m_attributes.replace(tag, attributes);
+ m_attributes.tqreplace(tag, attributes);
res.append("<" + tag);
if (!m_attributes[tag].isEmpty())
res.append(" " + m_attributes[tag]);
@@ -153,8 +153,8 @@ TQString KSParser::pushTag(const TQString &tag, const TQString &attributes)
TQString KSParser::popTag(const TQString &tag)
{
- if (!m_tags.contains(tag))
- return TQString::null;
+ if (!m_tags.tqcontains(tag))
+ return TQString();
TQString res;
TQValueStack<TQString> savedTags;
@@ -172,7 +172,7 @@ TQString KSParser::popTag(const TQString &tag)
TQString KSParser::toggleTag(const TQString &tag, const TQString &attributes)
{
- return m_attributes.contains(tag) ? popTag(tag) : pushTag(tag, attributes);
+ return m_attributes.tqcontains(tag) ? popTag(tag) : pushTag(tag, attributes);
}
TQString KSParser::popAll()