diff options
author | Olli Werwolff <qt-info@nokia.com> | 2011-09-12 09:24:23 +0200 |
---|---|---|
committer | Olli Werwolff <qt-info@nokia.com> | 2011-09-12 09:24:23 +0200 |
commit | 09885bb1b583a616fc5ef61508e75565c5a7f93d (patch) | |
tree | b4642cfaee9a0ccb3702aae3fdeb79d89b298eae | |
parent | 86e86a62bf311aec2e2f65f9dd6679038fb74794 (diff) |
Set TouchPoint state in Simulator in order to enable touch in qml
Task-number: QTSIM-214
Reviewed-by: ckamm
-rw-r--r-- | src/other/inputfilter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/other/inputfilter.cpp b/src/other/inputfilter.cpp index 9e4ee7c..d98da52 100644 --- a/src/other/inputfilter.cpp +++ b/src/other/inputfilter.cpp @@ -106,6 +106,7 @@ QtSimulatorPrivate::TouchEventData InputFilter::createTouchEventFromMouseEvent(W touchPoint.lastNormalizedPos = QPointF(touchPoint.lastScreenPos.x() / display->width(), touchPoint.lastScreenPos.y() / display->height()); touchPoint.pressure = .75; + touchPoint.state = static_cast<Qt::TouchPointStates>(touchEvent.touchPointStates); touchPointList.append(touchPoint); } touchEvent.touchPoints = touchPointList; |