kstyle: don't blindly fill contentsRect when calculating textRect

Otherwise in RTL layout the text start position will be the left side of the button.

Co-authored-by: Alexander Volkov avolkov@astralinux.ru

BUG: 459444 FIXED-IN: 5.26

Merge request reports

Loading