From 6092ac823aff28cbb8b6a01d3a2f90eb939f008b Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Sat, 19 Jul 2003 08:02:40 +0000 Subject: [PATCH] no hardcoded font svn path=/trunk/kdebase/kwin/; revision=237897 --- kcmkwin/kwindecoration/buttons.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kcmkwin/kwindecoration/buttons.cpp b/kcmkwin/kwindecoration/buttons.cpp index 3b6a51e009..cb0edadb86 100644 --- a/kcmkwin/kwindecoration/buttons.cpp +++ b/kcmkwin/kwindecoration/buttons.cpp @@ -16,6 +16,7 @@ #include #include +#include #include "buttons.h" #include "pixmaps.h" @@ -550,7 +551,7 @@ void ButtonDropSite::drawContents( QPainter* p ) QColor c1( 0x0A, 0x5F, 0x89 ); // KDE 2 titlebar default colour p->fillRect( r, c1 ); p->setPen( Qt::white ); - p->setFont( QFont( "helvetica", 12, QFont::Bold) ); + p->setFont( QFont( KGlobalSettings::generalFont().family(), 12, QFont::Bold) ); p->drawText( r, AlignLeft | AlignVCenter, i18n("KDE") ); offset = geometry().width() - 3 - rightoffset;