diff options
Diffstat (limited to 'ksirc/ksparser.cpp')
-rw-r--r-- | ksirc/ksparser.cpp | 20 |
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() |