Skip to content

OSD: Fix size calculation for progress value

Kai Uwe Broulik requested to merge work/kbroulik/osd-wrap-bug into master

Use a common function for formatting the percent, so placeholder 100% label will use the exact formatting used by the label next to the progress bar.

Also use font advanceWidth, which is the appropriate means of calculating the bounding box of text in this case. Also ceil it to avoid subpixel alignment.


My 100% volume label no longer wraps awkwardly.

Does this need cherry-picking to 5.27 or is this only broken on Qt 6? We’re not adding new strings here, just removing and shuffling existing ones, this is fine for stable.

Edited by Kai Uwe Broulik

Merge request reports