Adjust the sizeHint of the CurveWidget