Hey,
There is a problem with the "is typing" notification in the chat window.
if a contact's name is <Etienne/>, the name <Etienne/> is shown correctly in 
the ChatMessagePart but when the contact is composing a message, I am notified 
in the bottom of the chat window "<etienne></etienne> is typing a message..."

I had a look at the source code and found that the name is processed by  
ChatMessagePart::formatName() before it is used. the second argument that is 
passed to the function is Qt::PlainText and switching it to Qt::RichText 
solves the problem (see the attached patch).

Is there any reason why Qt::PlainText is used instead of Qt::RichText ?
Also, the comment describing the method does not really tell what it does. 
Does it change the text to "format" or does it return a printable text from a 
text in "format" ?

Cheers,

Detlev Casanova
Index: chatview.cpp
===================================================================
--- chatview.cpp	(revision 906281)
+++ chatview.cpp	(working copy)
@@ -451,7 +451,7 @@
 	for( it = m_remoteTypingMap.begin(); it != m_remoteTypingMap.end(); ++it )
 	{
 		const Kopete::Contact *c = it.key();
-		typingList.append( m_messagePart->formatName(c, Qt::PlainText) );
+		typingList.append( m_messagePart->formatName(c, Qt::RichText) );
 	}
 
 	// Update the status area
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to