This commit is contained in:
Sergio Martins
2020-10-09 18:35:16 +01:00
parent 6edfcc4f02
commit fad03f8e0b

View File

@@ -634,9 +634,14 @@ bool Item::checkSanity()
if (m_guest) {
if (m_guest->parent() != hostWidget()->asQObject()) {
qWarning() << Q_FUNC_INFO << "Unexpected parent for our guest"
<< m_guest->parent() << "; host=" << hostWidget()
<< m_guest->asQObject() << this;
if (root())
root()->dumpLayout();
qWarning() << Q_FUNC_INFO << "Unexpected parent for our guest. guest.parent="
<< m_guest->parent() << "; host=" << hostWidget()->asQObject()
<< "; guest.asObj=" << m_guest->asQObject()
<< "; this=" << this
<< "; item.parentContainer=" << parentContainer()
<< "; item.root.parent=" << (root() ? root()->parent() : nullptr);
return false;
}