From 34ae22499b91f483f1cf505e515047ea11e8eaf0 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 05 Jan 2005 15:22:09 +0000 Subject: remove hard coded fonts for dvorak, keyboard, multikey, pickboard, and unikeyboard --- (limited to 'inputmethods/pickboard/pickboard.cpp') diff --git a/inputmethods/pickboard/pickboard.cpp b/inputmethods/pickboard/pickboard.cpp index 1611cb0..e5365ba 100644 --- a/inputmethods/pickboard/pickboard.cpp +++ b/inputmethods/pickboard/pickboard.cpp @@ -22,7 +22,7 @@ #include "pickboardcfg.h" #include - +#include #include #include #include @@ -92,10 +92,15 @@ Pickboard::Pickboard(QWidget* parent, const char* name, WFlags f) : { (new QHBoxLayout(this))->setAutoAdd(TRUE); d = new PickboardPrivate(this); -// under Win32 we may not have smallsmooth font -#ifndef Q_OS_WIN32 - setFont( QFont( "smallsmooth", 9 ) ); -#endif + + // get the default font + Config *config = new Config( "qpe" ); + config->setGroup( "Appearance" ); + QString familyStr = config->readEntry( "FontFamily", "smallsmooth" ); + int fontSize = config->readNumEntry( "FontSize", 10 ); + delete config; + + setFont( QFont( familyStr, fontSize ) ); } Pickboard::~Pickboard() -- cgit v0.9.0.2