summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/zlistview.cpp
blob: 7d0b8c25c32e0193e2c6098709c167376c47b058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
** $Id$
*/

#include "zlistview.h"
#include "zsafe.h"

/* OPIE */
//#include <opie2/odebug.h>

/* STD */
#include <stdio.h>

ZListView::ZListView (ZSafe *zsafe, const char *id) : QListView(zsafe, id)
{
   zs = zsafe;
}

ZListView::~ZListView()
{
}

void ZListView::keyPressEvent ( QKeyEvent *e )
{
/*
   owarn << "key: " << e->key() << oendl;
*/

   switch (e->key())
   {
      case 32: // middle cursor key pressed
         zs->showInfo (zs->selectedItem);
         break;
      default:
         QListView::keyPressEvent( e );
   }

}