Diffstat (limited to 'noncore/apps/opie-console/widget_layer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/widget_layer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/widget_layer.cpp b/noncore/apps/opie-console/widget_layer.cpp index e4b0ede..ac84f8b 100644 --- a/noncore/apps/opie-console/widget_layer.cpp +++ b/noncore/apps/opie-console/widget_layer.cpp | |||
@@ -44,24 +44,30 @@ WidgetLayer::WidgetLayer( const Profile &config, QWidget *parent, const char *na | |||
44 | qApp->installEventFilter( this ); | 44 | qApp->installEventFilter( this ); |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
48 | 48 | ||
49 | WidgetLayer::~WidgetLayer() | 49 | WidgetLayer::~WidgetLayer() |
50 | { | 50 | { |
51 | // clean up | 51 | // clean up |
52 | delete m_image; | 52 | delete m_image; |
53 | } | 53 | } |
54 | 54 | ||
55 | 55 | ||
56 | QSize WidgetLayer::sizeHint() | ||
57 | { | ||
58 | return size(); | ||
59 | } | ||
60 | |||
61 | |||
56 | /* --------------------------------- audio ---------------------------------- */ | 62 | /* --------------------------------- audio ---------------------------------- */ |
57 | 63 | ||
58 | void WidgetLayer::bell() | 64 | void WidgetLayer::bell() |
59 | { | 65 | { |
60 | QApplication::beep(); | 66 | QApplication::beep(); |
61 | } | 67 | } |
62 | 68 | ||
63 | bool WidgetLayer::eventFilter( QObject *obj, QEvent *e ) | 69 | bool WidgetLayer::eventFilter( QObject *obj, QEvent *e ) |
64 | { | 70 | { |
65 | if ( (e->type() == QEvent::Accel || | 71 | if ( (e->type() == QEvent::Accel || |
66 | e->type() == QEvent::AccelAvailable ) && qApp->focusWidget() == this ) { | 72 | e->type() == QEvent::AccelAvailable ) && qApp->focusWidget() == this ) { |
67 | static_cast<QKeyEvent *>( e )->ignore(); | 73 | static_cast<QKeyEvent *>( e )->ignore(); |