aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Spoerl <[email protected]>2024-01-24 13:13:33 +0100
committerAxel Spoerl <[email protected]>2025-07-07 11:34:50 +0100
commitc9c3ea444503438cb92644574ac24a0e564db6a6 (patch)
treebc9751fb928e3d39523e93641bf9747aa47c7ddf
parentd136963fd6c121c7904717ce6e3ab6d9d5011c7e (diff)
QQuickItemPrivate::nextPrevItemInTabFocusChain(): log wrappingHEADdev
qCDebug() accordingly, when focus is wrapped, i.e. passed from the last to the first or from the first to the last item. Task-number: QTBUG-121478 Change-Id: Iedb1e58ac3fee34d654bc2790143a3fed767ab8a Reviewed-by: Doris Verria <[email protected]>
-rw-r--r--src/quick/items/qquickitem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp
index a406a3538e..8fe0e4deb8 100644
--- a/src/quick/items/qquickitem.cpp
+++ b/src/quick/items/qquickitem.cpp
@@ -2661,8 +2661,12 @@ QQuickItem* QQuickItemPrivate::nextPrevItemInTabFocusChain(QQuickItem *item, boo
// Wrap around after checking all items forward
if (forward) {
current = firstChild;
+ qCDebug(lcFocus) << "QQuickItemPrivate::nextPrevItemInTabFocusChain:"
+ << "wrapping from last to first:" << current;
} else {
current = lastChild;
+ qCDebug(lcFocus) << "QQuickItemPrivate::nextPrevItemInTabFocusChain:"
+ << "wrapping from first to last:" << current;
if (!current->childItems().isEmpty())
skip = true;
}