~aacid/unity8/activtion-progress

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Application/MirSurfaceItem.h

  • Committer: Albert Astals Cid
  • Date: 2016-02-19 11:48:26 UTC
  • mfrom: (2143.1.60 unity8)
  • Revision ID: albert.astals@canonical.com-20160219114826-ctquarjfkew3fmn7
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    Q_PROPERTY(int touchReleaseCount READ touchReleaseCount WRITE setTouchReleaseCount
37
37
                                     NOTIFY touchReleaseCountChanged DESIGNABLE false)
38
38
 
 
39
    Q_PROPERTY(int mousePressCount READ mousePressCount WRITE setMousePressCount
 
40
                                   NOTIFY mousePressCountChanged)
 
41
    Q_PROPERTY(int mouseReleaseCount READ mouseReleaseCount WRITE setMouseReleaseCount
 
42
                                   NOTIFY mouseReleaseCountChanged)
39
43
public:
40
44
    explicit MirSurfaceItem(QQuickItem *parent = 0);
41
45
    ~MirSurfaceItem();
76
80
    int touchReleaseCount() const { return m_touchReleaseCount; }
77
81
    void setTouchReleaseCount(int count) { m_touchReleaseCount = count; Q_EMIT touchReleaseCountChanged(count); }
78
82
 
 
83
    int mousePressCount() const { return m_mousePressCount; }
 
84
    void setMousePressCount(int count) { m_mousePressCount = count; Q_EMIT mousePressCountChanged(count); }
 
85
 
 
86
    int mouseReleaseCount() const { return m_mouseReleaseCount; }
 
87
    void setMouseReleaseCount(int count) { m_mouseReleaseCount = count; Q_EMIT mouseReleaseCountChanged(count); }
 
88
 
79
89
Q_SIGNALS:
80
90
    void touchPressCountChanged(int count);
81
91
    void touchReleaseCountChanged(int count);
 
92
    void mousePressCountChanged(int count);
 
93
    void mouseReleaseCountChanged(int count);
82
94
 
83
95
protected:
84
96
    void touchEvent(QTouchEvent * event) override;
109
121
 
110
122
    int m_touchPressCount;
111
123
    int m_touchReleaseCount;
 
124
    int m_mousePressCount;
 
125
    int m_mouseReleaseCount;
112
126
 
113
127
    FillMode m_fillMode{Stretch};
114
128