set scrollbar thickness based on sizeHint()
some cleanup.