[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdenetwork/kopete/kopete/contactlist
From: Engin Aydogan <engin () bzzzt ! biz>
Date: 2005-09-25 12:44:28
Message-ID: 1127652268.118886.32015.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 463812 by engin:
Added a missing character escaping for Display Name in the tooltips.
M +17 -1 kopetemetacontactlvi.cpp
--- branches/KDE/3.5/kdenetwork/kopete/kopete/contactlist/kopetemetacontactlvi.cpp \
#463811:463812 @@ -94,8 +94,24 @@
}
toolTip += QString::fromLatin1("</td><td>");
- toolTip += QString::fromLatin1("<b><font \
size=\"+1\">%1</font></b><br><br>").arg(Kopete::Emoticons::parseEmoticons( \
metaContact->displayName()) );
+ QString displayName;
+ Kopete::Emoticons *e = Kopete::Emoticons::self();
+ QValueList<Emoticons::Token> t = e->tokenize( metaContact->displayName());
+ QValueList<Emoticons::Token>::iterator it;
+ for( it = t.begin(); it != t.end(); ++it )
+ {
+ if( (*it).type == Kopete::Emoticons::Image )
+ {
+ displayName += (*it).picHTMLCode;
+ } else if( (*it).type == Kopete::Emoticons::Text )
+ {
+ displayName += QStyleSheet::escape( (*it).text );
+ }
+ }
+
+ toolTip += QString::fromLatin1("<b><font size=\"+1\">%1</font></b><br><br>").arg( \
displayName ); +
QPtrList<Contact> contacts = metaContact->contacts();
if ( contacts.count() == 1 )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic