summaryrefslogtreecommitdiff
authoribotty <ibotty>2002-10-13 10:27:40 (UTC)
committer ibotty <ibotty>2002-10-13 10:27:40 (UTC)
commitb8377d9c462d7edbc92c6809503cb53a09f8fd98 (patch) (unidiff)
tree87e592def2ca4838665de93ba0e93125cffec1d8
parent034504c65f8115f6a2fbd4f022082cc867aa2605 (diff)
downloadopie-b8377d9c462d7edbc92c6809503cb53a09f8fd98.zip
opie-b8377d9c462d7edbc92c6809503cb53a09f8fd98.tar.gz
opie-b8377d9c462d7edbc92c6809503cb53a09f8fd98.tar.bz2
added call to calcGeometry in constructor of EmulationWidget.
hopefully fixes the 50x1 size problem
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_widget.cpp3
-rw-r--r--noncore/apps/opie-console/widget_layer.h2
2 files changed, 5 insertions, 0 deletions
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
25 f_height = fm.height(); 25 f_height = fm.height();
26 f_width = fm.maxWidth(); 26 f_width = fm.maxWidth();
27 f_ascent = fm.ascent(); 27 f_ascent = fm.ascent();
28
29 // give reasonable defaults to m_columns, m_lines
30 calcGeometry();
28 31
29 // initialize scrollbar related vars 32 // initialize scrollbar related vars
30 m_scrollbar = new QScrollBar( this ); 33 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 @@
26#include "session.h" 26#include "session.h"
27#include "common.h" 27#include "common.h"
28#include "profile.h" 28#include "profile.h"
29
30
29/* 31/*
30 * given a pseudo location ( column, line ), 32 * given a pseudo location ( column, line ),
31 * returns the actual index, in the QArray<Character> 33 * returns the actual index, in the QArray<Character>