Bug 54429

Summary: number of unread messages in folder list is garbled
Product: [Applications] kmail Reporter: Flavio Stanchina <flavio>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: kfoldertree.diff

Description Flavio Stanchina 2003-02-10 21:07:21 UTC
Version:           1.5 (using KDE 3.1.0)
Installed from:     (3.0)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:          Linux (i686) release 2.4.20

The number of unread messages in the folder list is rendered incorrectly. A closer inspection reveals that apparently the number is rendered twice: once with the normal font and then with the bold font. This is not visible if the folder list is using a fixed-width font, only with a proportional font where the bold text is wider than the normal text.

If it matters, I'm using the Verdana TrueType font.
Comment 1 Carsten Burghardt 2003-02-10 22:33:51 UTC

*** This bug has been marked as a duplicate of 53521 ***
Comment 2 Carsten Burghardt 2003-02-10 22:40:17 UTC
Subject: Re:  New: number of unread messages in folder list is garbled

Am Montag, 10. Februar 2003 21:07 schrieb Flavio Stanchina:
> The number of unread messages in the folder list is rendered incorrectly. A
> closer inspection reveals that apparently the number is rendered twice:
> once with the normal font and then with the bold font. This is not visible
> if the folder list is using a fixed-width font, only with a proportional
> font where the bold text is wider than the normal text.

I don't see this behaviour but I assume it's because KListViewItem::paintCell 
is called in the kfoldertree and afterwards the bold font is set.
Perhaps the attached patch fixes this, perhaps somebody who sees this 
behaviour can test it .



Created an attachment (id=928)
kfoldertree.diff
Comment 3 Malte S. Stretz 2003-02-10 23:19:51 UTC
I'll have a try...