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();
|
const QSize sz = effectivePreferredSize();
|
||||||
if ( !sz.isEmpty() )
|
if ( !sz.isEmpty() )
|
||||||
resize( effectivePreferredSize() );
|
resize( sz );
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -424,6 +424,8 @@ QSize QskWindow::effectivePreferredSize() const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDebug() << constraint.width() << constraint.height();
|
||||||
|
|
||||||
// QWindow geometries are in integers
|
// QWindow geometries are in integers
|
||||||
|
|
||||||
return QSize( qskToIntegerConstraint( constraint.width() ),
|
return QSize( qskToIntegerConstraint( constraint.width() ),
|
||||||
|
|
Loading…
Reference in New Issue