author | zecke <zecke> | 2002-10-14 19:58:07 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-14 19:58:07 (UTC) |
commit | 0547ecc794209a0824fd7662e434706ac625dbb2 (patch) (unidiff) | |
tree | 90243ddbca14b2c01552d55b413be0d044c3a108 /noncore/apps/opie-console/emulation_handler.cpp | |
parent | 7114c1567399d9b134af337824ef56e7d5facee7 (diff) | |
download | opie-0547ecc794209a0824fd7662e434706ac625dbb2.zip opie-0547ecc794209a0824fd7662e434706ac625dbb2.tar.gz opie-0547ecc794209a0824fd7662e434706ac625dbb2.tar.bz2 |
Make it work
history and other stuff
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 | 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 | |||
@@ -19,6 +19,7 @@ EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const c | |||
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 | ||
@@ -32,13 +33,16 @@ 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); |