00001 /* 00002 ** $Id: zlistview.cpp,v 1.3 2004/05/31 15:26:51 ar Exp $ 00003 */ 00004 00005 #include "zlistview.h" 00006 #include "zsafe.h" 00007 00008 /* OPIE */ 00009 //#include <opie2/odebug.h> 00010 00011 /* STD */ 00012 #include <stdio.h> 00013 00014 ZListView::ZListView (ZSafe *zsafe, const char *id) : QListView(zsafe, id) 00015 { 00016 zs = zsafe; 00017 } 00018 00019 ZListView::~ZListView() 00020 { 00021 } 00022 00023 void ZListView::keyPressEvent ( QKeyEvent *e ) 00024 { 00025 /* 00026 owarn << "key: " << e->key() << oendl; 00027 */ 00028 00029 switch (e->key()) 00030 { 00031 case 32: // middle cursor key pressed 00032 zs->showInfo (zs->selectedItem); 00033 break; 00034 default: 00035 QListView::keyPressEvent( e ); 00036 } 00037 00038 } 00039
1.4.2