From 4d943846128118e1b9932a17ce6f977a0f4127a5 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sun, 6 Dec 2020 14:09:26 +0100 Subject: QHeaderView: respect the font role while calculating the elided text The font role in the header view was not taken into account when the text for an item should be elided. This leads to a wrongly elided text esp. visible when the font size is different to the font of QHeaderView. Fix it by passing the elide mode to the style since only the style knows the used font (e.g. bold or not bold) and available rect. This is now in sync with CE_ItemViewItem where the eliding is also done by the style and not by the item view. [ChangeLog][QtWidgets][QHeaderView] QStyleOptionHeader got a new member textElideMode. Fixes: QTBUG-86426 Change-Id: If6914fe5aaa5d285e6da55d2129f9249d90da3d7 Reviewed-by: Richard Moe Gustavsen --- qtbase.pro | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qtbase.pro') diff --git a/qtbase.pro b/qtbase.pro index 59d8d958a3..4f1871fe0a 100644 --- a/qtbase.pro +++ b/qtbase.pro @@ -1,3 +1,5 @@ + + ##################################################################### # Main projectfile ##################################################################### -- cgit v1.2.3