using sizeConstraint

This commit is contained in:
Uwe Rathmann 2020-05-10 11:22:52 +02:00
parent 3919fc4938
commit 495c91ce33

View File

@ -28,7 +28,7 @@ Main
{ {
// very much standard: we should find a better way // very much standard: we should find a better way
var hint = effectivePreferredSize(); var hint = sizeConstraint();
setMinimumWidth( hint.width ) setMinimumWidth( hint.width )
setMinimumHeight( hint.height ) setMinimumHeight( hint.height )
} }