focus tab chain fixed
This commit is contained in:
parent
2bea439c80
commit
6cbc72b44e
@ -48,7 +48,7 @@ static void qskUpdateFocusChain(
|
|||||||
There should be a faster way TODO ...
|
There should be a faster way TODO ...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const int cellIndex = grid.y() * engine->rowCount() + grid.x();
|
const int cellIndex = grid.y() * engine->columnCount() + grid.x();
|
||||||
|
|
||||||
QQuickItem* itemNext = nullptr;
|
QQuickItem* itemNext = nullptr;
|
||||||
int minDelta = -1;
|
int minDelta = -1;
|
||||||
@ -60,7 +60,7 @@ static void qskUpdateFocusChain(
|
|||||||
if ( itemAt && item != itemAt )
|
if ( itemAt && item != itemAt )
|
||||||
{
|
{
|
||||||
const auto gridAt = engine->gridAt( i );
|
const auto gridAt = engine->gridAt( i );
|
||||||
const int delta = gridAt.y() * engine->rowCount() + gridAt.x() - cellIndex;
|
const int delta = gridAt.y() * engine->columnCount() + gridAt.x() - cellIndex;
|
||||||
|
|
||||||
if ( delta > 0 )
|
if ( delta > 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user