diff options
author | Antti Hölttä <AHoelttae@luxoft.com> | 2019-02-19 15:36:39 +0100 |
---|---|---|
committer | Antti Hölttä <AHoelttae@luxoft.com> | 2019-03-18 16:42:31 +0100 |
commit | 8489f36322c585ec78199e6eb183000c74afae19 (patch) | |
tree | 8989b7cf6275b8b6cbffaa3b44467f5bd4ecdbf5 /plugin/cursornavigation.h | |
parent | a5120f26d509a3464c79404de84e9428b8ddc690 (diff) |
Add redirect feature for manually fine tuning the cursor's movement
Cursornavigation now has a property redirects, that allows defining
exceptions to the navigation behaviour. A redirect allows defining
a starting and an ending angle and a target object.
If the move command's direction falls between the limits, the algorithm
is bypassed and cursor is moved to the target object.
Diffstat (limited to 'plugin/cursornavigation.h')
-rw-r--r-- | plugin/cursornavigation.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/cursornavigation.h b/plugin/cursornavigation.h index a32a357..ad1cf31 100644 --- a/plugin/cursornavigation.h +++ b/plugin/cursornavigation.h @@ -25,10 +25,8 @@ public: //void setMagnitude(const QVector2D& vector); //move the cursor bool move(qreal angle, qreal tolerance, bool discrete); - bool move(const QVector2D& vector, qreal tolerance, bool discrete); //find the next item without moving the cursor - CursorNavigationAttached *find(qreal angle, qreal tolerance, bool discrete); - CursorNavigationAttached *find(const QVector2D& vector, qreal tolerance, bool discrete); + QQuickItem *find(qreal angle, qreal tolerance, bool discrete); bool action(Action action); static CursorNavigationAttached *qmlAttachedProperties(QObject *object); |