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

List:       kde-core-devel
Subject:    Re: kcmshell4 fonts and toolbar fonts update
From:       Rafael =?utf-8?q?Fern=C3=A1ndez_L=C3=B3pez?= <ereslibre () kde ! org>
Date:       2007-12-08 21:54:05
Message-ID: 200712082254.08533.ereslibre () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Hi all,

Good news. Fixed. Patch attached.

On KGlobalSettings we have to set the font for the toolbars in a explicit way.

The removed code at KToolbar is not necessary, as the code added to 
KGlobalSettings also does that.

OK to commit ?

PS: To remind you the problem, it was that without this patch, if you have for 
instance Dolphin or KWrite running, and you go to "kcmshell4 fonts" and 
change the font of toolbars, they are not updated. The attached patch fixes 
this problem.


---
Rafael Fernández López

GPG Fingerprint: B9F4 4730 43F8 FFDD CC5E BA8E 724E 406E 3F01 D070

["toolbarfix.diff" (text/x-diff)]

Index: kdeui/kernel/kglobalsettings.cpp
===================================================================
--- kdeui/kernel/kglobalsettings.cpp	(revisión: 746393)
+++ kdeui/kernel/kglobalsettings.cpp	(copia de trabajo)
@@ -966,6 +966,7 @@ void KGlobalSettings::Private::kdisplayS
         QApplication::setFont(KGlobalSettings::menuFont(), "QMenuBar");
         QApplication::setFont(KGlobalSettings::menuFont(), "QPopupMenu");
         QApplication::setFont(KGlobalSettings::menuFont(), "KPopupTitle");
+        QApplication::setFont(KGlobalSettings::toolBarFont(), "QToolBar");
 
 #if 0
         // "patch" standard QStyleSheet to follow our fonts
Index: kdeui/widgets/ktoolbar.cpp
===================================================================
--- kdeui/widgets/ktoolbar.cpp	(revisión: 746393)
+++ kdeui/widgets/ktoolbar.cpp	(copia de trabajo)
@@ -199,8 +199,6 @@ void KToolBar::Private::init( bool readC
            parent, SLOT( slotMovableChanged( bool ) ) );
 
   parent->setAcceptDrops( true );
-
-  parent->setFont( KGlobalSettings::toolBarFont() );
 }
 
 void KToolBar::Private::getAttributes( QString &position, Qt::ToolButtonStyle \
&toolButtonStyle, int &index ) const


["signature.asc" (application/pgp-signature)]

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

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