Diffstat (limited to 'noncore/apps/zsafe/zlistview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/zsafe/zlistview.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/noncore/apps/zsafe/zlistview.cpp b/noncore/apps/zsafe/zlistview.cpp index ba02a15..7d0b8c2 100644 --- a/noncore/apps/zsafe/zlistview.cpp +++ b/noncore/apps/zsafe/zlistview.cpp | |||
@@ -1,35 +1,38 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id$ | 2 | ** $Id$ |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include "zlistview.h" | 5 | #include "zlistview.h" |
6 | #include <stdio.h> | ||
7 | #include "zsafe.h" | 6 | #include "zsafe.h" |
8 | 7 | ||
8 | /* OPIE */ | ||
9 | //#include <opie2/odebug.h> | ||
10 | |||
11 | /* STD */ | ||
12 | #include <stdio.h> | ||
13 | |||
9 | ZListView::ZListView (ZSafe *zsafe, const char *id) : QListView(zsafe, id) | 14 | ZListView::ZListView (ZSafe *zsafe, const char *id) : QListView(zsafe, id) |
10 | { | 15 | { |
11 | zs = zsafe; | 16 | zs = zsafe; |
12 | } | 17 | } |
13 | 18 | ||
14 | ZListView::~ZListView() | 19 | ZListView::~ZListView() |
15 | { | 20 | { |
16 | } | 21 | } |
17 | 22 | ||
18 | void ZListView::keyPressEvent ( QKeyEvent *e ) | 23 | void ZListView::keyPressEvent ( QKeyEvent *e ) |
19 | { | 24 | { |
20 | /* | 25 | /* |
21 | char buf[64]; | 26 | owarn << "key: " << e->key() << oendl; |
22 | sprintf (buf, "key: %d\n", e->key()); | ||
23 | qWarning (buf); | ||
24 | */ | 27 | */ |
25 | 28 | ||
26 | switch (e->key()) | 29 | switch (e->key()) |
27 | { | 30 | { |
28 | case 32: // middle cursor key pressed | 31 | case 32: // middle cursor key pressed |
29 | zs->showInfo (zs->selectedItem); | 32 | zs->showInfo (zs->selectedItem); |
30 | break; | 33 | break; |
31 | default: | 34 | default: |
32 | QListView::keyPressEvent( e ); | 35 | QListView::keyPressEvent( e ); |
33 | } | 36 | } |
34 | 37 | ||
35 | } | 38 | } |