Review Request 124047: Improve clock's tooltip layout

Kai Uwe Broulik kde at privat.broulik.de
Mon Jun 8 21:20:09 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124047/#review81320
-----------------------------------------------------------


Nice improvement!


applets/digital-clock/package/contents/ui/DigitalClock.qml (line 408)
<https://git.reviewboard.kde.org/r/124047/#comment55726>

    What does it look like without the <br>? Imho the gap is a bit large. You could instead give the table some margin-top



applets/digital-clock/package/contents/ui/DigitalClock.qml (line 443)
<https://git.reviewboard.kde.org/r/124047/#comment55725>

    I think you can clean this up a bit to not duplicate all those strings. Also, I don't think you should put all of this HTML formatting into the i18n, it lacks Qt.application.layoutDirection checks too.
    
    Something like
    returnString += "<tr><%1 align='right'>%2</%1><%1>%3</%1></tr>".arg(isCurrent ? "th" : "td").arg(timezoneString).arg(Qt.formatTime(dateTime, main.timeFormat));


- Kai Uwe Broulik


On Juni 8, 2015, 9:10 nachm., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124047/
> -----------------------------------------------------------
> 
> (Updated Juni 8, 2015, 9:10 nachm.)
> 
> 
> Review request for Plasma.
> 
> 
> Bugs: 348078
>     https://bugs.kde.org/show_bug.cgi?id=348078
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> In kde4 times, the layout of clock's tooltip was nicely arranged using a table. Now it's a bit of a mess so this brings back the table.
> 
> Also simplifies the timeForZone function which is used only for the tooltip.
> 
> 
> Diffs
> -----
> 
>   applets/digital-clock/package/contents/ui/DigitalClock.qml a142d33 
>   applets/digital-clock/package/contents/ui/main.qml e814056 
> 
> Diff: https://git.reviewboard.kde.org/r/124047/diff/
> 
> 
> Testing
> -------
> 
> See screenshots.
> 
> 
> File Attachments
> ----------------
> 
> Before
>   https://git.reviewboard.kde.org/media/uploaded/files/2015/06/08/62594835-6bbb-436d-ba88-f39cb98b3033__clock-tooltip4.png
> After
>   https://git.reviewboard.kde.org/media/uploaded/files/2015/06/08/fc93cc02-881b-4bca-96a5-e0356baf4e61__clock-tooltip3.png
> 
> 
> Thanks,
> 
> Martin Klapetek
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150608/9d9af3f8/attachment.html>


More information about the Plasma-devel mailing list