aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-07-29 14:09:00 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-08-02 10:35:47 +0000
commite611c00d8c73f0aae77920646db88c09f0f880fa (patch)
tree4ef727cef316a9712cb970eec11b4d7f3b6a2e93 /src/quick/items/qquickevents_p_p.h
parent388b2c5b46365a12aea5aaab091f24314349a102 (diff)
Stop copying mouse events when delivering them
Reduce allocations of events, just refill the local pos. Change-Id: I2948faf0e302bff315e482f2c1432fe0def19bc5 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h
index 571c257a26..072a90d864 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -401,7 +401,7 @@ public:
QVector<QQuickItem *> grabbers() const override;
void clearGrabbers() const override;
- QMouseEvent *asMouseEvent() const;
+ QMouseEvent *asMouseEvent(const QPointF& localPos) const;
private:
QQuickEventPoint *m_mousePoint;