~tpeeters/ubuntu-ui-toolkit/10-tabsModelIndex

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/plugin/inversemouseareatype.h

  • Committer: tpeeters
  • Date: 2014-03-24 19:13:15 UTC
  • mfrom: (967.1.15 ubuntu-ui-toolkit)
  • Revision ID: tim.peeters@canonical.com-20140324191315-cgmt5x2h6v2xq1jh
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#define INVERSEMOUSEAREATYPE_H
18
18
 
19
19
#include <private/qquickmousearea_p.h>
 
20
#include <QtCore/QPointer>
20
21
 
21
22
class QQuickItem;
22
23
class InverseMouseAreaType : public QQuickMouseArea
44
45
    void setSensingArea(QQuickItem *sensing);
45
46
    bool topmostItem() const;
46
47
    void setTopmostItem(bool value);
47
 
    QEvent * mapEventToArea(QObject *target, QEvent *event);
 
48
    QEvent * mapEventToArea(QObject *target, QEvent *event, QPoint &point);
48
49
 
49
50
Q_SIGNALS:
50
51
    void sensingAreaChanged();
52
53
 
53
54
private Q_SLOTS:
54
55
    void update();
 
56
    void resetFilterOnWindowUpdate(QQuickWindow *win);
55
57
    
56
58
private:
57
 
    bool m_ready;
58
 
    bool m_topmostItem;
59
 
    QQuickItem *m_sensingArea;
 
59
    bool m_ready:1;
 
60
    bool m_topmostItem:1;
 
61
    bool m_filteredEvent:1;
 
62
    QPointer<QObject> m_filterHost;
 
63
    QPointer<QQuickItem> m_sensingArea;
 
64
    int m_touchId;
 
65
 
 
66
    void updateEventFilter(bool enable);
60
67
};
61
68
 
62
69
#endif // INVERSEMOUSEAREATYPE_H