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