~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/eventwatcher.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
// Local
29
29
#include "gwenviewlib_export.h"
30
30
 
31
 
 
32
 
namespace Gwenview {
 
31
namespace Gwenview
 
32
{
33
33
 
34
34
/**
35
35
 * This class emits a signal when some events are triggered on a watched
36
36
 * object.
37
37
 */
38
 
class GWENVIEWLIB_EXPORT EventWatcher : public QObject {
39
 
        Q_OBJECT
 
38
class GWENVIEWLIB_EXPORT EventWatcher : public QObject
 
39
{
 
40
    Q_OBJECT
40
41
public:
41
 
        EventWatcher(QObject* watched, const QList<QEvent::Type>& eventTypes);
42
 
 
43
 
        static EventWatcher* install(QObject* watched, const QList<QEvent::Type>& eventTypes, QObject* receiver, const char* slot);
44
 
 
45
 
        static EventWatcher* install(QObject* watched, QEvent::Type eventType, QObject* receiver, const char* slot);
 
42
    EventWatcher(QObject* watched, const QList<QEvent::Type>& eventTypes);
 
43
 
 
44
    static EventWatcher* install(QObject* watched, const QList<QEvent::Type>& eventTypes, QObject* receiver, const char* slot);
 
45
 
 
46
    static EventWatcher* install(QObject* watched, QEvent::Type eventType, QObject* receiver, const char* slot);
46
47
 
47
48
Q_SIGNALS:
48
 
        void eventTriggered(QEvent*);
 
49
    void eventTriggered(QEvent*);
49
50
 
50
51
protected:
51
 
        virtual bool eventFilter(QObject*, QEvent* event);
 
52
    virtual bool eventFilter(QObject*, QEvent* event);
52
53
 
53
54
private:
54
 
        QList<QEvent::Type> mEventTypes;
 
55
    QList<QEvent::Type> mEventTypes;
55
56
};
56
57
 
57
58
}