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 | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index 836a05b..b2cd348 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp | |||
@@ -34,17 +34,15 @@ void EmulationHandler::load( const Profile& prof) { | |||
34 | m_teWid->setVTFont( font( prof.readNumEntry("Font") ) ); | 34 | m_teWid->setVTFont( font( prof.readNumEntry("Font") ) ); |
35 | int num = prof.readNumEntry("Color"); | 35 | int num = prof.readNumEntry("Color"); |
36 | setColor( foreColor(num), backColor(num) ); | 36 | setColor( foreColor(num), backColor(num) ); |
37 | m_teWid->setBackgroundColor(backColor(num) ); | 37 | m_teWid->setBackgroundColor(backColor(num) ); |
38 | } | 38 | } |
39 | void EmulationHandler::recv( const QByteArray& ar) { | 39 | void EmulationHandler::recv( const QByteArray& ar) { |
40 | qWarning("received in EmulationHandler!"); | ||
41 | m_teEmu->onRcvBlock(ar.data(), ar.count() ); | 40 | m_teEmu->onRcvBlock(ar.data(), ar.count() ); |
42 | } | 41 | } |
43 | void EmulationHandler::recvEmulation(const char* src, int len ) { | 42 | void EmulationHandler::recvEmulation(const char* src, int len ) { |
44 | qWarning("received from te "); | ||
45 | QByteArray ar(len); | 43 | QByteArray ar(len); |
46 | 44 | ||
47 | memcpy(ar.data(), src, sizeof(char) * len ); | 45 | memcpy(ar.data(), src, sizeof(char) * len ); |
48 | 46 | ||
49 | emit send(ar); | 47 | emit send(ar); |
50 | } | 48 | } |
@@ -96,18 +94,16 @@ QFont EmulationHandler::font( int id ) { | |||
96 | QColor EmulationHandler::foreColor(int col) { | 94 | QColor EmulationHandler::foreColor(int col) { |
97 | QColor co; | 95 | QColor co; |
98 | /* we need to switch it */ | 96 | /* we need to switch it */ |
99 | switch( col ) { | 97 | switch( col ) { |
100 | default: | 98 | default: |
101 | case Profile::White: | 99 | case Profile::White: |
102 | qWarning("Foreground black"); | ||
103 | /* color is black */ | 100 | /* color is black */ |
104 | co = Qt::white; | 101 | co = Qt::white; |
105 | break; | 102 | break; |
106 | case Profile::Black: | 103 | case Profile::Black: |
107 | qWarning("Foreground white"); | ||
108 | co = Qt::black; | 104 | co = Qt::black; |
109 | break; | 105 | break; |
110 | case Profile::Green: | 106 | case Profile::Green: |
111 | qWarning("Foreground green"); | 107 | qWarning("Foreground green"); |
112 | co = Qt::green; | 108 | co = Qt::green; |
113 | break; | 109 | break; |
@@ -123,18 +119,16 @@ QColor EmulationHandler::foreColor(int col) { | |||
123 | QColor EmulationHandler::backColor(int col ) { | 119 | QColor EmulationHandler::backColor(int col ) { |
124 | QColor co; | 120 | QColor co; |
125 | /* we need to switch it */ | 121 | /* we need to switch it */ |
126 | switch( col ) { | 122 | switch( col ) { |
127 | default: | 123 | default: |
128 | case Profile::White: | 124 | case Profile::White: |
129 | qWarning("Background white"); | ||
130 | /* color is white */ | 125 | /* color is white */ |
131 | co = Qt::black; | 126 | co = Qt::black; |
132 | break; | 127 | break; |
133 | case Profile::Black: | 128 | case Profile::Black: |
134 | qWarning("Background black"); | ||
135 | co = Qt::white; | 129 | co = Qt::white; |
136 | break; | 130 | break; |
137 | case Profile::Green: | 131 | case Profile::Green: |
138 | qWarning("Background black"); | 132 | qWarning("Background black"); |
139 | co = Qt::black; | 133 | co = Qt::black; |
140 | break; | 134 | break; |