~nick-dedekind/unity8/indicators.hint-interval

« back to all changes in this revision

Viewing changes to plugins/Utils/passthroughmousearea.h

  • Committer: Nick Dedekind
  • Date: 2014-03-10 09:34:27 UTC
  • Revision ID: nicholas.dedekind@gmail.com-20140310093427-11u13xlctqumqgbw
Fixed PassthroughMouseArea without area behind + Test

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <private/qquickmousearea_p.h>
21
21
#include <QPointer>
22
22
 
23
 
class QQuickItem;
 
23
// Reports all mouse events received, like a regular MouseArea,
 
24
// but also let them pass through to reach items behind it
24
25
class PassthroughMouseArea : public QQuickMouseArea
25
26
{
26
27
    Q_OBJECT
30
31
 
31
32
protected:
32
33
    void mousePressEvent(QMouseEvent *event);
 
34
    void mouseUngrabEvent();
33
35
 
34
36
private Q_SLOTS:
35
 
    void onReleased(QQuickMouseEvent* event);
 
37
    void onGrabbedReleased(QQuickMouseEvent* event);
36
38
    void clearConnected();
37
39
 
38
40
private: