diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2022-07-13 11:05:43 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2022-07-13 17:17:01 +0200 |
commit | b36d7076e4c6f566a296215816111cf4d71606a0 (patch) | |
tree | 4a7cccaa7958eb63ef97ecb0da972e11a6a955d9 /src/widgets | |
parent | 12262adebad5e4af2cf2c9a6dd41a941c78f1988 (diff) |
Fix wrong debug output upon creation of floating dockwidget tabs
When a floating dock is created, a qCDebug message is logged to
indicate the hovered dock widget. By mistake, the target pointer to
the floating tab is dumped, which is nullptr at that moment.
This patch corrects the debugging output.
Pick-to: 6.4 6.3 6.2
Change-Id: I317f057ef4b2d8fe508be687152bcede61c22f46
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/widgets/qmainwindowlayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qmainwindowlayout.cpp b/src/widgets/widgets/qmainwindowlayout.cpp index 4a199e0b18..10732aecbe 100644 --- a/src/widgets/widgets/qmainwindowlayout.cpp +++ b/src/widgets/widgets/qmainwindowlayout.cpp @@ -2798,7 +2798,7 @@ void QMainWindowLayout::hover(QLayoutItem *hoverTarget, QDockAreaLayoutItem(parentLayout->takeAt(parentLayout->indexOf(dropTo)))); dropTo->setParent(floatingTabs); - qCDebug(lcQpaDockWidgets) << "Wrapping" << w << "into floating tabs" << floatingTabs; + qCDebug(lcQpaDockWidgets) << "Wrapping" << widget << "into floating tabs" << floatingTabs; w = floatingTabs; } |