summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-09-15 08:48:10 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-15 09:17:05 +0200
commitd75d22d1b29f2d1ec826aebb0e8c0646760dbb10 (patch)
treecd3c323002f2f9648885c849287acc58cdf0686a /src/testlib
parent36ee35406d9fa63fcdf3810466f106a524c16e6f (diff)
compile when shadowing is an error
Change-Id: If12cd19821d07303e808e19be1ee3984c90110b1 Reviewed-on: http://codereview.qt-project.org/4946 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qtesttouch.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testlib/qtesttouch.h b/src/testlib/qtesttouch.h
index 9191ac96f6..60a300d40a 100644
--- a/src/testlib/qtesttouch.h
+++ b/src/testlib/qtesttouch.h
@@ -157,15 +157,15 @@ namespace QTest
return window->mapToGlobal(pt);
return targetWindow ? targetWindow->mapToGlobal(pt) : pt;
}
- QWindowSystemInterface::TouchPoint touchPoint(const QTouchEvent::TouchPoint& point)
+ QWindowSystemInterface::TouchPoint touchPoint(const QTouchEvent::TouchPoint& pt)
{
QWindowSystemInterface::TouchPoint p;
- p.id = point.id();
- p.isPrimary = point.isPrimary();
- p.normalPosition = point.screenRect().topLeft();
- p.area = point.screenRect();
- p.pressure = point.pressure();
- p.state = point.state();
+ p.id = pt.id();
+ p.isPrimary = pt.isPrimary();
+ p.normalPosition = pt.screenRect().topLeft();
+ p.area = pt.screenRect();
+ p.pressure = pt.pressure();
+ p.state = pt.state();
return p;
}
QList<struct QWindowSystemInterface::TouchPoint> touchPointList(const QList<QTouchEvent::TouchPoint>& pointList)