summaryrefslogtreecommitdiff
authoribotty <ibotty>2002-10-13 16:56:54 (UTC)
committer ibotty <ibotty>2002-10-13 16:56:54 (UTC)
commit495abbf351f29328b52cb055566ef8bec6f466f0 (patch) (unidiff)
tree7b462124c88f6127bf3f789339ebde9e4a089e35
parent19cf7d4ff5a64aff90e31b29072ce30db6a046ec (diff)
downloadopie-495abbf351f29328b52cb055566ef8bec6f466f0.zip
opie-495abbf351f29328b52cb055566ef8bec6f466f0.tar.gz
opie-495abbf351f29328b52cb055566ef8bec6f466f0.tar.bz2
key presses should be now visible.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/widget_layer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/widget_layer.cpp b/noncore/apps/opie-console/widget_layer.cpp
index 0364e66..6682708 100644
--- a/noncore/apps/opie-console/widget_layer.cpp
+++ b/noncore/apps/opie-console/widget_layer.cpp
@@ -35,22 +35,27 @@ WidgetLayer::WidgetLayer( const Profile &config, QWidget *parent, const char *na
35 m_columns = 1; 35 m_columns = 1;
36 m_resizing = false; 36 m_resizing = false;
37 37
38 // just for demonstrating 38 // just for demonstrating
39 //m_image = QArray<Character>( m_lines * m_columns ); 39 //m_image = QArray<Character>( m_lines * m_columns );
40 m_image = QArray<Character>( 1 ); 40 m_image = QArray<Character>( 1 );
41
42 // we need to install an event filter,
43 // to emit keypresses.
44 qApp->installEventFilter( this );
41 45
42} 46}
43 47
44 48
45WidgetLayer::~WidgetLayer() 49WidgetLayer::~WidgetLayer()
46{ 50{
47 // clean up 51 // clean up
48 delete m_image; 52 delete m_image;
49} 53}
50 54
55
51/* --------------------------------- audio ---------------------------------- */ 56/* --------------------------------- audio ---------------------------------- */
52 57
53void WidgetLayer::bell() 58void WidgetLayer::bell()
54{ 59{
55 QApplication::beep(); 60 QApplication::beep();
56} 61}