From b8377d9c462d7edbc92c6809503cb53a09f8fd98 Mon Sep 17 00:00:00 2001 From: ibotty Date: Sun, 13 Oct 2002 10:27:40 +0000 Subject: added call to calcGeometry in constructor of EmulationWidget. hopefully fixes the 50x1 size problem --- diff --git a/noncore/apps/opie-console/emulation_widget.cpp b/noncore/apps/opie-console/emulation_widget.cpp index 5c3b2d2..318d7bb 100644 --- a/noncore/apps/opie-console/emulation_widget.cpp +++ b/noncore/apps/opie-console/emulation_widget.cpp @@ -25,6 +25,9 @@ EmulationWidget::EmulationWidget( const Profile& config, QWidget *parent, const f_height = fm.height(); f_width = fm.maxWidth(); f_ascent = fm.ascent(); + + // give reasonable defaults to m_columns, m_lines + calcGeometry(); // initialize scrollbar related vars m_scrollbar = new QScrollBar( this ); diff --git a/noncore/apps/opie-console/widget_layer.h b/noncore/apps/opie-console/widget_layer.h index bc8fe36..067f3da 100644 --- a/noncore/apps/opie-console/widget_layer.h +++ b/noncore/apps/opie-console/widget_layer.h @@ -26,6 +26,8 @@ #include "session.h" #include "common.h" #include "profile.h" + + /* * given a pseudo location ( column, line ), * returns the actual index, in the QArray -- cgit v0.9.0.2