Fix qDebug for child items going out of scope before the parents
Made the child debug lines appear before
This commit is contained in:
@@ -2016,11 +2016,18 @@ void ItemContainer::dumpLayout(int level)
|
||||
const QString typeStr = isRoot() ? QStringLiteral("* Root: ")
|
||||
: QStringLiteral("* Layout: ");
|
||||
|
||||
qDebug().noquote() << indent << typeStr << d->m_orientation
|
||||
<< m_sizingInfo.geometry /*<< "r=" << m_geometry.right() << "b=" << m_geometry.bottom()*/
|
||||
<< "; min=" << minSize()
|
||||
<< "; this=" << this << beingInserted << visible
|
||||
<< "; %=" << d->childPercentages();
|
||||
{
|
||||
auto dbg = qDebug().noquote();
|
||||
dbg << indent << typeStr << d->m_orientation
|
||||
<< m_sizingInfo.geometry /*<< "r=" << m_geometry.right() << "b=" << m_geometry.bottom()*/
|
||||
<< "; min=" << minSize()
|
||||
<< "; this=" << this << beingInserted << visible
|
||||
<< "; %=" << d->childPercentages();
|
||||
|
||||
if (maxSizeHint() != Item::hardcodedMaximumSize)
|
||||
dbg << "; max=" << maxSizeHint();
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
for (Item *item : qAsConst(d->m_children)) {
|
||||
item->dumpLayout(level + 1);
|
||||
|
||||
Reference in New Issue
Block a user