diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-11 13:53:32 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-12 01:11:37 +0100 |
commit | 62763ff04555ce86619ae9a83a42ca4e45db0ec9 (patch) | |
tree | 50e4ba6cfdcdc700b79629a0ca07f0cfbbf38efe | |
parent | 13a0a39e3e3f7374404d49ea364d26a9ce47c457 (diff) |
Pass QWheelEvent by reference, not by copy
It's bad enough that we have a copy constructor for QEvent, but passing a
rather heavy type like QWheelEvent by value is inefficient anyway.
Change-Id: I0d1736a272c941f17f4290d37e0ae1d2ddc610c8
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/quick/handlers/qquickwheelhandler_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/handlers/qquickwheelhandler_p.h b/src/quick/handlers/qquickwheelhandler_p.h index b1688a3c2a..25390dc4c4 100644 --- a/src/quick/handlers/qquickwheelhandler_p.h +++ b/src/quick/handlers/qquickwheelhandler_p.h @@ -103,7 +103,7 @@ public: void setTargetTransformAroundCursor(bool ttac); Q_SIGNALS: - void wheel(QWheelEvent event); + void wheel(const QWheelEvent &event); void orientationChanged(); void invertibleChanged(); |