calling QskWindow::effectivePreferredSize only once
This commit is contained in:
parent
1918bc7cd8
commit
56acfbb056
@ -246,7 +246,7 @@ bool QskWindow::event( QEvent* event )
|
||||
{
|
||||
const QSize sz = effectivePreferredSize();
|
||||
if ( !sz.isEmpty() )
|
||||
resize( effectivePreferredSize() );
|
||||
resize( sz );
|
||||
}
|
||||
|
||||
break;
|
||||
@ -424,6 +424,8 @@ QSize QskWindow::effectivePreferredSize() const
|
||||
}
|
||||
}
|
||||
|
||||
qDebug() << constraint.width() << constraint.height();
|
||||
|
||||
// QWindow geometries are in integers
|
||||
|
||||
return QSize( qskToIntegerConstraint( constraint.width() ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user