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, 5 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index c67c7c7..9e7f56c 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp | |||
@@ -16,12 +16,13 @@ EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const c | |||
16 | 16 | ||
17 | connect(m_teEmu,SIGNAL(ImageSizeChanged(int, int) ), | 17 | connect(m_teEmu,SIGNAL(ImageSizeChanged(int, int) ), |
18 | this, SIGNAL(changeSize(int, int) ) ); | 18 | this, SIGNAL(changeSize(int, int) ) ); |
19 | connect(m_teEmu, SIGNAL(sndBlock(const char*, int) ), | 19 | connect(m_teEmu, SIGNAL(sndBlock(const char*, int) ), |
20 | this, SLOT(recvEmulation(const char*, int) ) ); | 20 | this, SLOT(recvEmulation(const char*, int) ) ); |
21 | m_teEmu->setConnect( true ); | 21 | m_teEmu->setConnect( true ); |
22 | m_teEmu->setHistory( TRUE ); | ||
22 | load( prof ); | 23 | load( prof ); |
23 | 24 | ||
24 | 25 | ||
25 | 26 | ||
26 | } | 27 | } |
27 | EmulationHandler::~EmulationHandler() { | 28 | EmulationHandler::~EmulationHandler() { |
@@ -29,19 +30,22 @@ EmulationHandler::~EmulationHandler() { | |||
29 | delete m_teWid; | 30 | delete m_teWid; |
30 | } | 31 | } |
31 | void EmulationHandler::load( const Profile& ) { | 32 | void EmulationHandler::load( const Profile& ) { |
32 | QFont font = QFont("Fixed", 12, QFont::Normal ); | 33 | QFont font = QFont("Fixed", 12, QFont::Normal ); |
33 | font.setFixedPitch(TRUE); | 34 | font.setFixedPitch(TRUE); |
34 | m_teWid->setVTFont( font ); | 35 | m_teWid->setVTFont( font ); |
35 | m_teWid->setBackgroundColor(Qt::black ); | 36 | m_teWid->setBackgroundColor(Qt::gray ); |
36 | } | 37 | } |
37 | void EmulationHandler::recv( const QByteArray& ar) { | 38 | void EmulationHandler::recv( const QByteArray& ar) { |
39 | qWarning("received in EmulationHandler!"); | ||
38 | m_teEmu->onRcvBlock(ar.data(), ar.count() ); | 40 | m_teEmu->onRcvBlock(ar.data(), ar.count() ); |
39 | } | 41 | } |
40 | void EmulationHandler::recvEmulation(const char* src, int len ) { | 42 | void EmulationHandler::recvEmulation(const char* src, int len ) { |
43 | qWarning("received from te "); | ||
41 | QByteArray ar(len); | 44 | QByteArray ar(len); |
45 | |||
42 | memcpy(ar.data(), src, sizeof(char) * len ); | 46 | memcpy(ar.data(), src, sizeof(char) * len ); |
43 | 47 | ||
44 | emit send(ar); | 48 | emit send(ar); |
45 | } | 49 | } |
46 | QWidget* EmulationHandler::widget() { | 50 | QWidget* EmulationHandler::widget() { |
47 | return m_teWid; | 51 | return m_teWid; |