[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: [PATCH] Fix for wishlist bug #48697
From: Severin Greimel <greimel-kde () fs-pw ! uni-muenchen ! de>
Date: 2004-03-31 7:36:39
Message-ID: 200403310936.39803.greimel-kde () fs-pw ! uni-muenchen ! de
[Download RAW message or body]
Hi,
the attached patch should provide the behaviour requested by
Bug 48697: kmail folder list shouldn't bold parents if children are visible
(http://bugs.kde.org/show_bug.cgi?id=48697)
This doesn't seem to be high priority (no votes), but it nevertheless meets my
own intuition.
Regards,
Severin
["kfoldertree.cpp.diff" (text/x-diff)]
Index: kfoldertree.cpp
===================================================================
RCS file: /home/kde/kdepim/libkdenetwork/kfoldertree.cpp,v
retrieving revision 1.38
diff -u -r1.38 kfoldertree.cpp
--- kfoldertree.cpp 23 Mar 2004 23:39:36 -0000 1.38
+++ kfoldertree.cpp 31 Mar 2004 07:21:41 -0000
@@ -197,7 +197,7 @@
* needed when there is the unread column, special case that. */
if ( ft->isUnreadActive() ) {
if ( (column == 0 || column == ft->unreadIndex())
- && countUnreadRecursive() > 0 )
+ && (mUnread > 0 || (!isOpen() && countUnreadRecursive() > 0)) )
{
QFont f = p->font();
f.setWeight(QFont::Bold);
@@ -233,8 +233,8 @@
if ( !t.isEmpty() )
{
// use a bold-font for the folder- and the unread-columns
- if ( countUnreadRecursive() > 0 &&
- (column == 0 || column == ft->unreadIndex()) )
+ if ( (column == 0 || column == ft->unreadIndex())
+ && (mUnread > 0 || (!isOpen() && countUnreadRecursive() > 0)) )
{
QFont f = p->font();
f.setWeight(QFont::Bold);
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic