Diffstat (limited to 'noncore/apps/opie-console/emulation_handler.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.cpp | 12 |
1 files changed, 7 insertions, 5 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 | |||
@@ -38,13 +38,15 @@ EmulationHandler::~EmulationHandler() { | |||
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) { |
@@ -127,17 +129,17 @@ QColor EmulationHandler::foreColor(int col) { | |||
127 | co = Qt::white; | 129 | co = Qt::white; |
128 | break; | 130 | break; |
129 | case Profile::Black: | 131 | case Profile::Black: |
130 | co = Qt::black; | 132 | co = Qt::black; |
131 | break; | 133 | break; |
132 | case Profile::Green: | 134 | case Profile::Green: |
133 | owarn << "Foreground green" << oendl; | 135 | owarn << "Foreground green" << oendl; |
134 | co = Qt::green; | 136 | co = Qt::green; |
135 | break; | 137 | break; |
136 | case Profile::Orange: | 138 | case Profile::Orange: |
137 | owarn << "Foreground orange" << oendl; | 139 | owarn << "Foreground orange" << oendl; |
138 | co.setRgb( 231, 184, 98 ); | 140 | co.setRgb( 231, 184, 98 ); |
139 | break; | 141 | break; |
140 | } | 142 | } |
141 | 143 | ||
142 | return co; | 144 | return co; |
143 | } | 145 | } |
@@ -151,17 +153,17 @@ QColor EmulationHandler::backColor(int col ) { | |||
151 | co = Qt::black; | 153 | co = Qt::black; |
152 | break; | 154 | break; |
153 | case Profile::Black: | 155 | case Profile::Black: |
154 | co = Qt::white; | 156 | co = Qt::white; |
155 | break; | 157 | break; |
156 | case Profile::Green: | 158 | case Profile::Green: |
157 | owarn << "Background black" << oendl; | 159 | owarn << "Background black" << oendl; |
158 | co = Qt::black; | 160 | co = Qt::black; |
159 | break; | 161 | break; |
160 | case Profile::Orange: | 162 | case Profile::Orange: |
161 | owarn << "Background black" << oendl; | 163 | owarn << "Background black" << oendl; |
162 | co = Qt::black; | 164 | co = Qt::black; |
163 | break; | 165 | break; |
164 | } | 166 | } |
165 | 167 | ||
166 | return co; | 168 | return co; |
167 | } | 169 | } |