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. Change-Id: I317f057ef4b2d8fe508be687152bcede61c22f46 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit b36d7076e4c6f566a296215816111cf4d71606a0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
9693867fed
commit
aa3d8e7d0f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user