Bug 163475 - Truncation of contact names not done for status change messages
Summary: Truncation of contact names not done for status change messages
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Dennis Nienhüser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-07 19:46 UTC by Frederik Himpe
Modified: 2008-06-27 20:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Himpe 2008-06-07 19:46:04 UTC
Version:           0.50.80 (using Devel)
Installed from:    Compiled sources

In Kontact's preferences I have it set to truncate contact's name to 30 characters. This is done fine in the message headers in the contact window, however, if the contact's changes status, then the contact's name in the message announcing this in the chat window, is not trucated, resulting in the text overlapping with the date and time.

I am using the "Clear" chat window style.

Related to that, overlapping text should never happen even if user's don't have name truncation enabled. It makes no sense and looks bad.
Comment 1 Frederik Himpe 2008-06-21 16:24:31 UTC
The same problem happens with the nicknames as shown in the tab pages of the chat window, they are also not trucated, resulting in almos unusable tabs with users with long nicknames
Comment 2 Dennis Nienhüser 2008-06-27 00:31:42 UTC
Got a patch locally, will tweak it a bit and commit in the next days.

Can you attach a screenshot showing the overlapping of text with date and time? Might as well be caused by the chat style / html rendering.
Comment 3 Dennis Nienhüser 2008-06-27 20:25:23 UTC
SVN commit 825273 by nienhueser:

Truncate contact names also in event messages and captions if activated in user preferences.
BUG: 163475


 M  +22 -12    chatmessagepart.cpp  
 M  +16 -8     chatmessagepart.h  
 M  +25 -52    chatview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=825273