summaryrefslogtreecommitdiff
path: root/libopie
Unidiff
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/big-screen/example/osplitter_mail.cpp12
-rw-r--r--libopie/big-screen/example/osplitter_mail.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/libopie/big-screen/example/osplitter_mail.cpp b/libopie/big-screen/example/osplitter_mail.cpp
index 91442c8..4eaf3a9 100644
--- a/libopie/big-screen/example/osplitter_mail.cpp
+++ b/libopie/big-screen/example/osplitter_mail.cpp
@@ -22,6 +22,7 @@ class Folder {
22 22
23ListViews::ListViews( QWidget* p, const char* name, WFlags fl ) 23ListViews::ListViews( QWidget* p, const char* name, WFlags fl )
24 : QWidget( p, name, fl ) { 24 : QWidget( p, name, fl ) {
25 qApp->installEventFilter( this );
25 m_lstFolders.setAutoDelete( true ); 26 m_lstFolders.setAutoDelete( true );
26 QHBoxLayout *lay = new QHBoxLayout(this); 27 QHBoxLayout *lay = new QHBoxLayout(this);
27 28
@@ -68,3 +69,14 @@ ListViews::ListViews( QWidget* p, const char* name, WFlags fl )
68ListViews::~ListViews() { 69ListViews::~ListViews() {
69 70
70} 71}
72
73
74bool ListViews::eventFilter( QObject* obj, QEvent* ev ) {
75 if (!obj->isWidgetType() )
76 return false;
77 if ( ev->type() == QEvent::MouseButtonRelease ) {
78 qWarning(" name %s, class %s", obj->name(), obj->className() );
79 }
80
81 return false;
82}
diff --git a/libopie/big-screen/example/osplitter_mail.h b/libopie/big-screen/example/osplitter_mail.h
index d76f264..b7e7efe 100644
--- a/libopie/big-screen/example/osplitter_mail.h
+++ b/libopie/big-screen/example/osplitter_mail.h
@@ -25,6 +25,7 @@ public:
25 ListViews( QWidget* parent, const char * name, WFlags fl ); 25 ListViews( QWidget* parent, const char * name, WFlags fl );
26 ~ListViews(); 26 ~ListViews();
27 27
28 bool eventFilter( QObject* , QEvent* );
28private: 29private:
29 void initFolders(); 30 void initFolders();
30 void initFolder( Folder *folder, unsigned int &count ); 31 void initFolder( Folder *folder, unsigned int &count );