summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--noncore/apps/opie-console/emulation_handler.cpp20
2 files changed, 18 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ee76e8..2828fcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,2 +14,3 @@
14 * Today Addressbook plugin - fix configuration to show/not show birthdays, use checkboxes for selection (hrw) 14 * Today Addressbook plugin - fix configuration to show/not show birthdays, use checkboxes for selection (hrw)
15 * Opie-Console: read initial fixed font configuration from qpe.conf (mickeyl)
15 16
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp
index 986ae8d..2087f57 100644
--- a/noncore/apps/opie-console/emulation_handler.cpp
+++ b/noncore/apps/opie-console/emulation_handler.cpp
@@ -6,2 +6,6 @@
6 6
7/* OPIE */
8#include <qpe/config.h>
9
10/* QT */
7#include <qfile.h> 11#include <qfile.h>
@@ -46,4 +50,14 @@ void EmulationHandler::load( const Profile& prof) {
46 50
47// m_teWid->setVTFont( font( prof.readNumEntry("Font") ) ); 51 // try to read the fontconfig from the profile
48 QFont font( prof.readEntry("Font"), prof.readNumEntry( "FontSize" ), QFont::Normal ); 52 QString aFont = prof.readEntry( "Font" );
53 int aFontSize = prof.readNumEntry( "FontSize" );
54 // use defaults from qpe.conf if no profile yet
55 if ( ( aFontSize == -1 ) || ( aFont == QString::null ) )
56 {
57 Config c( "qpe" );
58 c.setGroup( "Appearance" );
59 aFont = c.readEntry( "FixedFontFamily", "Fixed" );
60 aFontSize = c.readNumEntry( "FixedFontSize", 7 );
61 }
62 QFont font( aFont, aFontSize );
49 font.setFixedPitch( TRUE ); 63 font.setFixedPitch( TRUE );
@@ -51,3 +65,3 @@ void EmulationHandler::load( const Profile& prof) {
51 65
52 int num = prof.readNumEntry("Color"); 66 int num = prof.readNumEntry("Color", 0);
53 setColor( foreColor(num), backColor(num) ); 67 setColor( foreColor(num), backColor(num) );