diff --git a/examples/colorswitch/colorswitch.qml b/examples/colorswitch/colorswitch.qml index 401b37b6..39453eaf 100644 --- a/examples/colorswitch/colorswitch.qml +++ b/examples/colorswitch/colorswitch.qml @@ -28,7 +28,7 @@ Main { // very much standard: we should find a better way - var hint = effectivePreferredSize(); + var hint = sizeConstraint(); setMinimumWidth( hint.width ) setMinimumHeight( hint.height ) }