From e789f01a4fc6ada39809d40f8c44a6f6deec7785 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 14 Oct 2002 18:13:20 +0000 Subject: Make it work! --- (limited to 'noncore/apps/opie-console/emulation_handler.cpp') diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index 787de67..c67c7c7 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp @@ -6,11 +6,11 @@ #include "emulation_handler.h" -EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent, const char* name ) +EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const char* name ) : QObject(0, name ) { - load(prof ); - m_teWid = new TEWidget( parent, "TerminalMain" ); + m_teWid = new TEWidget( parent, "TerminalMain"); + m_teWid->setMinimumSize(150, 70 ); parent->resize( m_teWid->calcSize(80, 24 ) ); m_teEmu = new TEmuVt102(m_teWid ); @@ -18,6 +18,10 @@ EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent, const this, SIGNAL(changeSize(int, int) ) ); connect(m_teEmu, SIGNAL(sndBlock(const char*, int) ), this, SLOT(recvEmulation(const char*, int) ) ); + m_teEmu->setConnect( true ); + load( prof ); + + } EmulationHandler::~EmulationHandler() { @@ -25,7 +29,10 @@ EmulationHandler::~EmulationHandler() { delete m_teWid; } void EmulationHandler::load( const Profile& ) { - + QFont font = QFont("Fixed", 12, QFont::Normal ); + font.setFixedPitch(TRUE); + m_teWid->setVTFont( font ); + m_teWid->setBackgroundColor(Qt::black ); } void EmulationHandler::recv( const QByteArray& ar) { m_teEmu->onRcvBlock(ar.data(), ar.count() ); -- cgit v0.9.0.2