handling of spacings fixed

This commit is contained in:
Uwe Rathmann 2019-09-15 19:48:18 +02:00
parent 38974f747b
commit 1571b1f59a

View File

@ -249,14 +249,22 @@ bool Element::isIgnored() const
QskLayoutChain::CellData Element::cell( Qt::Orientation orientation ) const
{
const auto policy = qskSizePolicy( m_item ).policy( orientation );
QskLayoutChain::CellData cell;
cell.isValid = true;
if ( m_isSpacer )
{
// ???
}
else
{
const auto policy = qskSizePolicy( m_item ).policy( orientation );
cell.canGrow = policy & QskSizePolicy::GrowFlag;
if ( policy & QskSizePolicy::ExpandFlag )
cell.stretch = 1;
}
return cell;
}