From 56acfbb05678746dc12194f467f93ea45eaeeec4 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Fri, 14 Jun 2019 13:00:28 +0200 Subject: [PATCH] calling QskWindow::effectivePreferredSize only once --- src/controls/QskWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controls/QskWindow.cpp b/src/controls/QskWindow.cpp index cddece5b..e6669fab 100644 --- a/src/controls/QskWindow.cpp +++ b/src/controls/QskWindow.cpp @@ -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() ),