[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Patch per Kasbar
From:       Luciano Montanaro <mikelima () virgilio ! it>
Date:       2002-08-25 9:26:53
[Download RAW message or body]

Hello,
here is a little change I made to my copy of kasbar, maybe it could be
incorporated in CVS.
It makes kasbar use the taskbar font instead of the default font for icon
titles. I think it makes sense, since kasbar is really another kind of
taskbar. Without this patch, with my personal settings the descending par=
ts
of 'p', 'g' etc are not visible with my settings, with it, I can change t=
he
font to one that fits.

Luciano

["kasitem.patch" (text/x-diff)]

Index: kasitem.cpp
===================================================================
RCS file: /cvs/kdebase/kicker/extensions/kasbar/kasitem.cpp,v
retrieving revision 1.15
diff -u -r1.15 kasitem.cpp
--- kasitem.cpp	2002/08/09 22:57:07	1.15
+++ kasitem.cpp	2002/08/24 09:02:55
@@ -3,6 +3,7 @@
 #include <qtimer.h>
 
 #include <kglobal.h>
+#include <kglobalsettings.h>
 #include <kiconloader.h>
 #include <klocale.h>
 
@@ -158,6 +159,7 @@
 
     if ( !groupItem ) {
 	p->fillRect( 2, 2, extent()-4, 13, QBrush( Qt::black ) );
+	p->setFont( KGlobalSettings::taskbarFont() );
 	p->setPen( Qt::white );
 
 	if ( fontMetrics().width( text ) > extent()-4 )

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic