Home · All Namespaces · All Classes

EventEater Class Reference

#include <eventeater.h>

Inheritance diagram for EventEater:
Inheritance graph
[legend]
Collaboration diagram for EventEater:
Collaboration graph
[legend]

List of all members.

Signals

void inputEventReceived ()

Public Member Functions

 EventEater ()
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)

Protected Member Functions

virtual void showEvent (QShowEvent *event)

Detailed Description

Definition at line 27 of file eventeater.h.


Constructor & Destructor Documentation

EventEater::EventEater (  ) 

Definition at line 24 of file eventeater.cpp.

00025 {
00026     setWindowTitle("EventEater");
00027     setAttribute(Qt::WA_TranslucentBackground);
00028     setAttribute(Qt::WA_X11NetWmWindowTypeDialog);
00029     setAttribute(Qt::WA_X11DoNotAcceptFocus);
00030     setObjectName("EventEater");
00031     setProperty("NoMStyle", true);
00032 }


Member Function Documentation

void EventEater::inputEventReceived (  )  [signal]
void EventEater::mousePressEvent ( QMouseEvent *  event  )  [virtual]

Definition at line 34 of file eventeater.cpp.

00035 {
00036     emit inputEventReceived();
00037 }

Here is the call graph for this function:

void EventEater::mouseReleaseEvent ( QMouseEvent *  event  )  [virtual]

Definition at line 39 of file eventeater.cpp.

00040 {
00041     emit inputEventReceived();
00042 }

Here is the call graph for this function:

void EventEater::showEvent ( QShowEvent *  event  )  [protected, virtual]

Sets the _MEEGO_STACKING_LAYER window property to 6.

Definition at line 44 of file eventeater.cpp.

00045 {
00046     QWidget::showEvent(event);
00047 
00048     // Set the stacking layer
00049     Display *display = QX11Info::display();
00050     Atom stackingLayerAtom = X11Wrapper::XInternAtom(display, "_MEEGO_STACKING_LAYER", False);
00051     if (stackingLayerAtom != None) {
00052         long layer = 6;
00053         X11Wrapper::XChangeProperty(display, internalWinId(), stackingLayerAtom, XA_CARDINAL, 32, PropModeReplace, (unsigned char*) &layer, 1);
00054     }
00055 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Copyright © 2010 Nokia Corporation Generated on Wed Nov 10 16:05:05 2010
Doxygen 1.6.1
MeeGo Touch