| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Fix CursorNavigationAttached destruction, which caused segfault when
child instances called a method of the already deleted parent
Fixes: AUTOSUITE-1485
Change-Id: Ib8937e28cdd79836954e488361b9bee3b2d9747c
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
|
|
|
|
|
| |
Change-Id: Iecfae62068d93adc50ec12d79cd9e15e3c7a3c9f
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
|
|
|
|
|
| |
Change-Id: I79d33e3f944fcdd89023dbc84534318392bfee60
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
|
|
|
|
|
| |
Change-Id: I6e0bb1a23a814a441292d7a1b74096be7a7a49c3
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
|
|
|
|
|
| |
Change-Id: I882e79ebaf371eb6fb4bb6bc163b0b9099b370bc
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
|
|
|
|
|
|
|
|
|
|
| |
Lots of unnecessary log messages where appearing in
the console making it hard to read other important
messages
Task-number: AUTOSUITE-1256
Change-Id: I4f1a4339303040e6bc05d30c95d343e7d5379202
Reviewed-by: Antti Hölttä <ahoelttae@luxoft.com>
|
|
|
|
|
|
|
|
| |
Add currentItem -method to the attached CursorNavigation property.
The method returns the QQuickItem that currently has the cursor.
Change-Id: I3b43f819d915280bfab58639ccfb429fdcf818a4
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Explained some TODOs a bit better. Fixed mismatching tab titles in demo app.
Removed unused predefined CursorNavigationCommands.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Otherwise items that are not supposed to get the cursor may receive it.
|
|
|
|
|
|
|
|
|
| |
Add a common cursor indicator item that all navigable items may
use for visualizing the cursor.
Add a cursor navigable delegate.
Make lists more generic by adding a CNItemDelegate.
Add CNFlipButton that has flipping animations when used with
CursorNavigation. Update Page4 with the new button type.
|
| |
|
|
|
|
|
| |
An item may now have the cursor on it also if the active focus is
last set on one of its non-navigable children.
|
|
|
|
|
|
|
|
|
| |
When cursor is moved, the current item is informed of the actions
via callbacks. Eg. when cursor is moved up, the item that had the
cursor will have its movedUp signal fired. It is now also possible
to inform navigable items over incomplete movement, or the magnitude
of the movement. This may be used eg. to make buttons or elements to
flip/rotate to indicate that the cursor is about to be moved.
|
|
|
|
|
|
| |
Availability means that the item first of all accepting cursor,
visible, enabled, and within its parent's geometry. This value
is meant for the algorithms to define if item is navigable.
|
| |
|
| |
|
|
|
|
|
|
| |
done by precopying the list of candidates. Could avoid extra list
copies if the algorithm traversed the tree, but this is simpler and
works for now
|
| |
|
| |
|
|
|
|
|
|
| |
find-function is similar to the move, but instead of moving the cursor,
it returns the item that cursor would move to if move was called with
the same arguments
|
|
|
|
|
| |
Joystick produce change events very rapidly and continuously, so
a cooldown time is needed so that the cursor wont jump over multiple items
|
|
|
|
|
| |
Add algorithm that allows navigation to any direction. Works somewhat
well now. Example app has a page with a gamepad/stick support.
|
|
|
|
|
|
| |
CursorNavigationAttached now implements the functions for moving the
cursor and for giving commands. This makes it possible to reassign the
control keys, or use other input sources as well
|
|
|
|
|
| |
Scope may be entered and escaped. Navigable items may have escape targets
defined
|
|
|
|
|
| |
ItemRegister class removed and items now keep track of their own
cursor navigable child items. Navigation happens now only between siblings.
|
| |
|
|
Sort of working with 4 dir navigation, check demoapp
|