Diffstat (limited to 'noncore/apps/opie-console/emulation_handler.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index 89b70c6..1a0613f 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp | |||
@@ -32,25 +32,27 @@ EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const c | |||
32 | } | 32 | } |
33 | TEmulation* EmulationHandler::emulation() { | 33 | TEmulation* EmulationHandler::emulation() { |
34 | return m_teEmu; | 34 | return m_teEmu; |
35 | } | 35 | } |
36 | EmulationHandler::~EmulationHandler() { | 36 | EmulationHandler::~EmulationHandler() { |
37 | if (isRecording()) | 37 | if (isRecording()) |
38 | clearScript(); | 38 | clearScript(); |
39 | delete m_teEmu; | 39 | delete m_teEmu; |
40 | delete m_teWid; | 40 | delete m_teWid; |
41 | } | 41 | } |
42 | 42 | ||
43 | void EmulationHandler::load( const Profile& prof) { | 43 | void EmulationHandler::load( const Profile& prof) { |
44 | m_teWid->setVTFont( font( prof.readNumEntry("Font") ) ); | 44 | |
45 | // m_teWid->setVTFont( font( prof.readNumEntry("Font") ) ); | ||
46 | m_teWid->setVTFont( QFont( prof.readEntry("Font"), prof.readNumEntry( "FontSize" ), QFont::Normal ) ); | ||
45 | int num = prof.readNumEntry("Color"); | 47 | int num = prof.readNumEntry("Color"); |
46 | setColor( foreColor(num), backColor(num) ); | 48 | setColor( foreColor(num), backColor(num) ); |
47 | m_teWid->setBackgroundColor(backColor(num) ); | 49 | m_teWid->setBackgroundColor(backColor(num) ); |
48 | 50 | ||
49 | int term = prof.readNumEntry("Terminal", 0) ; | 51 | int term = prof.readNumEntry("Terminal", 0) ; |
50 | switch(term) { | 52 | switch(term) { |
51 | default: | 53 | default: |
52 | case Profile::VT102: | 54 | case Profile::VT102: |
53 | case Profile::VT100: | 55 | case Profile::VT100: |
54 | m_teEmu->setKeytrans("vt100.keytab"); | 56 | m_teEmu->setKeytrans("vt100.keytab"); |
55 | break; | 57 | break; |
56 | case Profile::Linux: | 58 | case Profile::Linux: |