Skip to content

[filewidgets] Fix KUrlNavigatorButton padding on breadcrumb

Ismael Asensio requested to merge work/fix_breadcrumb_padding into master

Use QFontMetrics::size(Qt::SingleLine, text).width() instead of QFontMetrics::boundingRect(text).width().

As suggested by @dfaure, from an empiric point of view, this seems to be a better replacement for QFontMetrics::width() when applied to strings than the other two alternatives.

See also system/dolphin!22 (merged)

BUG: 425570 FIXED-IN: 5.74

BEFORE: boundingRect().width() AFTER: size(Qt::SingleLine).width()
breadcrumb_before breadcrumb_after
Edited by Ismael Asensio

Merge request reports