Patch from Frerich to use KGlobalSetting instead of hardcoding helvetica.

Looks like he's too shy to commit it himself ;).

svn path=/trunk/kdebase/kwin/; revision=258819
This commit is contained in:
Luboš Luňák 2003-10-14 12:49:24 +00:00
parent 11ce009264
commit fa2f71549f

View file

@ -25,6 +25,7 @@ DEALINGS IN THE SOFTWARE.
#include "kdecoration_p.h"
#include <kconfig.h>
#include <kglobalsettings.h>
#include <qpalette.h>
#include <qapplication.h>
#include <assert.h>
@ -141,8 +142,8 @@ unsigned long KDecorationOptionsPrivate::updateKWinSettings( KConfig* config )
QFont old_activeFontSmall = activeFontSmall;
QFont old_inactiveFontSmall = inactiveFontSmall;
// Keep in sync with kglobalsettings.
QFont activeFontGuess("helvetica", 12, QFont::Bold);
QFont activeFontGuess = KGlobalSettings::generalFont();
activeFontGuess.setBold(true);
activeFontGuess.setPixelSize(12);
activeFont = config->readFontEntry("activeFont", &activeFontGuess);