calling QskWindow::effectivePreferredSize only once

This commit is contained in:
Uwe Rathmann 2019-06-14 13:00:28 +02:00
parent 1918bc7cd8
commit 56acfbb056
1 changed files with 3 additions and 1 deletions

View File

@ -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() ),