QskControl::setExplicitSizeHint fixed

This commit is contained in:
Uwe Rathmann 2018-05-09 14:13:26 +02:00
parent dcdb49f7e3
commit c2d8f0f6fe

View File

@ -1159,7 +1159,7 @@ void QskControl::setExplicitSizeHint( Qt::SizeHint whichHint, const QSizeF& size
if ( whichHint >= Qt::MinimumSize && whichHint <= Qt::MaximumSize ) if ( whichHint >= Qt::MinimumSize && whichHint <= Qt::MaximumSize )
{ {
const QSizeF newSize( ( size.width() < 0 ) ? -1.0 : size.width(), const QSizeF newSize( ( size.width() < 0 ) ? -1.0 : size.width(),
( size.width() < 0 ) ? -1.0 : size.width() ); ( size.height() < 0 ) ? -1.0 : size.height() );
Q_D( QskControl ); Q_D( QskControl );