]> cloud.milkyroute.net Git - dolphin.git/commit
Fix Bug 287983 - Dolphin truncates tooltip information for long file names
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Fri, 1 Nov 2013 23:12:33 +0000 (00:12 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Fri, 1 Nov 2013 23:12:33 +0000 (00:12 +0100)
commitc2bf208fe6c7c7081fe1cdb8213fb5b4eb3b6050
tree9fd043d721acb97124c16cd73d5174e601394bb7
parentf55119945f0edc369b53c64b45ae117dc73ff426
Fix Bug 287983 - Dolphin truncates tooltip information for long file names

Use KStringHandler and QTextLayout to wrap the text (file name)
into the maximum width of the label "name".

Make use of QFontMetrics to calculate a font size aware tooltip size.

BUG: 287983
FIXED-IN: 4.11.3
REVIEW: 113101
src/views/tooltips/filemetadatatooltip.cpp