diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-08-22 16:13:49 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-09-29 00:28:39 +0200 |
commit | cacb0ea963ae70f909246c1c1b639f2f78a3a003 (patch) | |
tree | 5e30ea3ac646621fca33b219bb847500aec8b87c /src/quick/items/qquickwindow.cpp | |
parent | 9baf823ec239789d20befa91e5c19e0c73f277df (diff) |
Clarify relation between transient parent and child in debug logging
It's also now clearer that it's a synchronous modification of the
relationship.
Change-Id: Ie9c72c7d195b124f842cc1df15c51cb7b4ff99e6
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
-rw-r--r-- | src/quick/items/qquickwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index 6d1ee36bca..7cb7d1644b 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -1762,7 +1762,7 @@ void QQuickWindowPrivate::data_append(QQmlListProperty<QObject> *property, QObje return; QQuickWindow *that = static_cast<QQuickWindow *>(property->object); if (QQuickWindow *window = qmlobject_cast<QQuickWindow *>(o)) { - qCDebug(lcTransient) << window << "is transient for" << that; + qCDebug(lcTransient) << "Setting" << that << "as transient parent of" << window; window->setTransientParent(that); } QQmlListProperty<QObject> itemProperty = QQuickItemPrivate::get(that->contentItem())->data(); @@ -2230,7 +2230,7 @@ void QQuickWindow::cleanupSceneGraph() void QQuickWindow::setTransientParent_helper(QQuickWindow *window) { - qCDebug(lcTransient) << this << "is transient for" << window; + qCDebug(lcTransient) << "Setting" << window << "as transient parent of" << this; setTransientParent(window); disconnect(sender(), SIGNAL(windowChanged(QQuickWindow*)), this, SLOT(setTransientParent_helper(QQuickWindow*))); |