#FEC-2433 #comment Moved the overlay size calculation to the kwidget class for reuse