summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_handler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp
index 1a0613f..c8022b9 100644
--- a/noncore/apps/opie-console/emulation_handler.cpp
+++ b/noncore/apps/opie-console/emulation_handler.cpp
@@ -34,25 +34,28 @@ TEmulation* EmulationHandler::emulation() {
34 return m_teEmu; 34 return m_teEmu;
35} 35}
36EmulationHandler::~EmulationHandler() { 36EmulationHandler::~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
43void EmulationHandler::load( const Profile& prof) { 43void EmulationHandler::load( const Profile& prof) {
44 44
45// m_teWid->setVTFont( font( prof.readNumEntry("Font") ) ); 45// m_teWid->setVTFont( font( prof.readNumEntry("Font") ) );
46 m_teWid->setVTFont( QFont( prof.readEntry("Font"), prof.readNumEntry( "FontSize" ), QFont::Normal ) ); 46 QFont font( prof.readEntry("Font"), prof.readNumEntry( "FontSize" ), QFont::Normal );
47 font.setFixedPitch( TRUE );
48 m_teWid->setVTFont( font );
49
47 int num = prof.readNumEntry("Color"); 50 int num = prof.readNumEntry("Color");
48 setColor( foreColor(num), backColor(num) ); 51 setColor( foreColor(num), backColor(num) );
49 m_teWid->setBackgroundColor(backColor(num) ); 52 m_teWid->setBackgroundColor(backColor(num) );
50 53
51 int term = prof.readNumEntry("Terminal", 0) ; 54 int term = prof.readNumEntry("Terminal", 0) ;
52 switch(term) { 55 switch(term) {
53 default: 56 default:
54 case Profile::VT102: 57 case Profile::VT102:
55 case Profile::VT100: 58 case Profile::VT100:
56 m_teEmu->setKeytrans("vt100.keytab"); 59 m_teEmu->setKeytrans("vt100.keytab");
57 break; 60 break;
58 case Profile::Linux: 61 case Profile::Linux: