diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-03-02 20:05:03 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-03-02 20:08:16 +0100 |
commit | fe2e9125d5ff8c35ede1c53fd1185046dca93087 (patch) | |
tree | e4bbc218c5be66ef25ab42263a462fd77d06936b /src/quick/items/qquickitem.cpp | |
parent | 543598a6cc07d67e7651c9f65c058465ea6d8425 (diff) |
Change detached root warning to a debug
It's possible to end up in QQuickItemPrivate::deliveryAgent() when
simply constructing an item from a Component. We don't expect this
detached item to receive input events, but QQuickItem::setEnabled()
eventually calls the deliveryAgent() accessor, so we can see this
warning in autotests, and it seems bogus in that context at least.
Change-Id: I08e87115e060874e2c43fb4c4e906f179715721e
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickitem.cpp')
-rw-r--r-- | src/quick/items/qquickitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp index e933fd2f87..cab7364919 100644 --- a/src/quick/items/qquickitem.cpp +++ b/src/quick/items/qquickitem.cpp @@ -5242,7 +5242,7 @@ QQuickDeliveryAgent *QQuickItemPrivate::deliveryAgent() } while (p); // arriving here is somewhat unexpected: a detached root can easily be created (just set an item's parent to null), // but why would we deliver events to that subtree? only if root got detached while an item in that subtree still has a grab? - qCWarning(lcPtr) << "detached root of" << q << "is not a QQuickRootItem and also does not have its own DeliveryAgent"; + qCDebug(lcPtr) << "detached root of" << q << "is not a QQuickRootItem and also does not have its own DeliveryAgent"; } if (window) return QQuickWindowPrivate::get(window)->deliveryAgent; |