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>
This commit is contained in:
parent
12262adeba
commit
b36d7076e4
@ -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…
Reference in New Issue
Block a user