Fix Bug 287983 - Dolphin truncates tooltip information for long file names
Review Request #113101 - Created Oct. 4, 2013 and submitted
Use KStringHandler and QTextLayout to wrap the text (file name) into the maximum width of the label "name".
Thanks, looks good! The only thing that I was a bit unsure about at first is the hardcoded maximum width of 250 pixels. But I guess that this is sufficient in most situations, and I don't really have any better idea how to limit the width, so I think it's OK. P.S.: For some reason, no notification about this review request was sent to the kfm-devel mailing list by ReviewBoard. Does anyone have an idea what the reason could be?
Review request changed
Make use of QFontMetrics to calculate a font size aware tooltip size. Thanks to Kai Uwe Broulik and Luciano Montanaro for pointing out this problem.
Revision 2 (+36 -2)