check for exceeding extra settings added
This commit is contained in:
parent
ff5e7574d5
commit
03c7913f18
@ -626,7 +626,15 @@ void QskGridLayoutEngine::setupChain( Qt::Orientation orientation,
|
|||||||
const auto& settings = m_data->settings( orientation );
|
const auto& settings = m_data->settings( orientation );
|
||||||
|
|
||||||
for ( const auto& setting : settings.settings() )
|
for ( const auto& setting : settings.settings() )
|
||||||
|
{
|
||||||
|
if ( setting.position >= chain.count() )
|
||||||
|
{
|
||||||
|
qWarning() << "Extra settings for exceeding rows/columns not yet implemented.";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
chain.shrinkCell( setting.position, setting.cell() );
|
chain.shrinkCell( setting.position, setting.cell() );
|
||||||
|
}
|
||||||
|
|
||||||
for ( const auto element : postponed )
|
for ( const auto element : postponed )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user