summaryrefslogtreecommitdiff
path: root/libopie/big-screen
Unidiff
Diffstat (limited to 'libopie/big-screen') (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
@@ -21,8 +21,9 @@ class Folder {
21// ----------------------------------------------------------------- 21// -----------------------------------------------------------------
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
28 m_splitter = new OSplitter( Horizontal, this, "SPlitter 1" ); 29 m_splitter = new OSplitter( Horizontal, this, "SPlitter 1" );
@@ -67,4 +68,15 @@ ListViews::ListViews( QWidget* p, const char* name, WFlags fl )
67 68
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
@@ -24,8 +24,9 @@ public:
24 static QString appName() { return QString::fromLatin1("osplitter-mail"); } 24 static QString appName() { return QString::fromLatin1("osplitter-mail"); }
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 );
31 32