~loic.molinari/+junk/qtdeclarative-shadereffectsource-changes

« back to all changes in this revision

Viewing changes to tests/auto/quick/qquickmultipointtoucharea/data/signalTest.qml

  • Committer: Loïc Molinari
  • Date: 2012-04-21 17:59:51 UTC
  • Revision ID: loic.molinari@canonical.com-20120421175951-bqx68caaf5zrp76l
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
 
 
3
MultiPointTouchArea {
 
4
    width: 240
 
5
    height: 320
 
6
 
 
7
    function clearCounts() {
 
8
        touchPointPressCount = 0;
 
9
        touchPointUpdateCount = 0;
 
10
        touchPointReleaseCount = 0;
 
11
        touchCount = 0;
 
12
        touchUpdatedHandled = false;
 
13
    }
 
14
 
 
15
    property int touchPointPressCount: 0
 
16
    property int touchPointUpdateCount: 0
 
17
    property int touchPointReleaseCount: 0
 
18
    property int touchCount: 0
 
19
    property bool touchUpdatedHandled: false
 
20
 
 
21
    maximumTouchPoints: 5
 
22
 
 
23
    onPressed: { touchPointPressCount = touchPoints.length }
 
24
    onUpdated: { touchPointUpdateCount = touchPoints.length }
 
25
    onReleased: { touchPointReleaseCount = touchPoints.length }
 
26
    onTouchUpdated: {
 
27
        touchCount = touchPoints.length
 
28
        touchUpdatedHandled = true
 
29
    }
 
30
}