author | mickeyl <mickeyl> | 2005-01-05 15:22:09 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-05 15:22:09 (UTC) |
commit | 34ae22499b91f483f1cf505e515047ea11e8eaf0 (patch) (side-by-side diff) | |
tree | 555ad0f77c87d445f1ca688f96a78fe903211190 /inputmethods/dvorak | |
parent | 80823d4cbd234a54a15d6b439bd37a8ea42e7904 (diff) | |
download | opie-34ae22499b91f483f1cf505e515047ea11e8eaf0.zip opie-34ae22499b91f483f1cf505e515047ea11e8eaf0.tar.gz opie-34ae22499b91f483f1cf505e515047ea11e8eaf0.tar.bz2 |
remove hard coded fonts for dvorak, keyboard, multikey, pickboard, and unikeyboard
-rw-r--r-- | inputmethods/dvorak/dvorak.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/inputmethods/dvorak/dvorak.cpp b/inputmethods/dvorak/dvorak.cpp index 2137f22..3781e38 100644 --- a/inputmethods/dvorak/dvorak.cpp +++ b/inputmethods/dvorak/dvorak.cpp @@ -23,3 +23,3 @@ #include <qpe/global.h> - +#include <qpe/config.h> #include <qwindowsystem_qws.h> @@ -45,5 +45,12 @@ Keyboard::Keyboard(QWidget* parent, const char* name, WFlags f) : + // 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; + picks = new KeyboardPicks( this ); - picks->setFont( QFont( "smallsmooth", 9 ) ); - setFont( QFont( "smallsmooth", 9 ) ); + picks->setFont( QFont( familyStr, fontSize ) ); + setFont( QFont( familyStr, fontSize ) ); picks->initialise(); |