summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qnsview_menus.mm
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-01-25 11:13:19 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-23 09:52:30 +0000
commitbd74b624d53ce076a8b6a90a66da0a19da1ec17c (patch)
tree9d30483db419ec5a54e61c133db3ac5808b56a3d /src/plugins/platforms/cocoa/qnsview_menus.mm
parentdfa434a9799618eba48a84cbad279262679aa108 (diff)
Improve bounding rect of QStaticText with Qt::PlainText
The bounding rect was not including positive leading of the last line. This patch solves it by changing using QTextLine's setLeadingIncluded, and adds handling of negative leading to keep rendering unchanged in that case. Change-Id: I4d18b81892184bb85cd7949a5dc3fb9cfa270a26 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qnsview_menus.mm')
0 files changed, 0 insertions, 0 deletions