fallback for pointless constraints added

This commit is contained in:
Uwe Rathmann 2019-08-23 09:09:52 +02:00
parent b3b15d50d9
commit bebdd80c9e
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,9 @@ QSizeF QskLayoutConstraint::sizeHint( const QQuickItem* item,
if ( item == nullptr || whichHint < Qt::MinimumSize || whichHint > Qt::MaximumSize ) if ( item == nullptr || whichHint < Qt::MinimumSize || whichHint > Qt::MaximumSize )
return QSizeF( 0, 0 ); return QSizeF( 0, 0 );
if ( constraint.isValid() )
return constraint;
QSizeF hint( 0, 0 ); QSizeF hint( 0, 0 );
Type constraintType = Unconstrained; Type constraintType = Unconstrained;