ToolTips and Automatic Formatting

Matěj Laitl matej at laitl.cz
Fri Aug 16 08:57:05 UTC 2013


On 16. 8. 2013 Mark Kretschmann wrote:
> Heya,
> 
> as we noticed recently, many of Amarok's ToolTips look very ugly and
> have readability issues because they are not formatted. Therefore a
> longer ToolTip is being rendered as one giant long line. The Qt API
> offers automatic formatting with line-breaks for ToolTips, but there
> is an ugly API quirk: The formatting can only be switched on by adding
> a <html> tag to the string. In theory a wrapper could be created for
> QWidget::setToolTip() and friends, but this wouldn't play nice with Qt
> Designer.
> 
> I think for consistency's sake it would be ideal to simply switch on
> automatic formatting for *all* of our ToolTips, and not bother with
> manual line-breaks. This is also because with translations it's
> impossible to know the final length and look of the strings. The
> downside is, we would have to change nearly all ToolTip strings in
> Amarok (this could be done with some clever sed use).
> 
> What do you think is the best way to go forward?

"Feel free to do it" from me, unless better solution is found. The strings in 
toolTips may be duplicated in other contexts (What's this etc.), bonus point 
is if you manage to change also these to keep them as one translation string.

	Matěj


More information about the Amarok-devel mailing list