diff options
author | Grigorii Zimin <gzimin@luxoft.com> | 2019-11-27 10:23:42 +0300 |
---|---|---|
committer | Grigorii Zimin <gzimin@luxoft.com> | 2019-11-27 08:28:12 +0000 |
commit | 2127f2f68ce9cc7975afb19f883dec3d98ee5047 (patch) | |
tree | 661da3a50a06cf45baab60a7476ca4db8582f563 /plugin/cursornavigationattached.h | |
parent | cee44751135f41a90e1b436483e54c90edd4d20d (diff) |
fix build against Qt 5.14
Change-Id: I882e79ebaf371eb6fb4bb6bc163b0b9099b370bc
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'plugin/cursornavigationattached.h')
-rw-r--r-- | plugin/cursornavigationattached.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin/cursornavigationattached.h b/plugin/cursornavigationattached.h index ac37de3..e6f5621 100644 --- a/plugin/cursornavigationattached.h +++ b/plugin/cursornavigationattached.h @@ -49,6 +49,7 @@ class CursorNavigation; class QQuickItem; class QQuickWindow; +class QVector2D; class CursorNavigationAttached : public QObject { @@ -90,14 +91,14 @@ public slots: * events are received by the item that currently has the cursor */ void setMagnitude(qreal angle, qreal magnitude); - void setMagnitude(QVector2D vector); + void setMagnitude(const QVector2D &vector); void move(qreal angle, qreal tolerance = 0); - void move(QVector2D vector, qreal tolerance = 0); + void move(const QVector2D &vector, qreal tolerance = 0); //find the next item with this move, without moving QQuickItem *find(qreal angle, qreal tolerance = 0); - QQuickItem *find(QVector2D vector, qreal tolerance = 0); + QQuickItem *find(const QVector2D &vector, qreal tolerance = 0); void moveUp(); void moveDown(); |