[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: ToolTips and Automatic Formatting
From:       Mark Kretschmann <kretschmann () kde ! org>
Date:       2013-08-19 11:11:32
Message-ID: CAGzDjiN-1KPf=oKxeVHnzOQ1gUZ+bZqk38XfwNKAN1oxehcH3w () mail ! gmail ! com
[Download RAW message or body]

On Fri, Aug 16, 2013 at 10:44 AM, Mark Kretschmann <kretschmann@kde.org> 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?

To illustrate the issue, have a look at this screenshot:

http://wstaw.org/m/2013/08/19/plasma-desktopmh2376.png

-- 
Mark Kretschmann
Amarok Developer
Fellow of the Free Software Foundation Europe
http://amarok.kde.org - http://fsfe.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic