Feature: Showing units along with labels

Lakshman acrlakshman at gmail.com
Mon Mar 10 08:13:45 PDT 2014


On Mon, Mar 10, 2014 at 10:07 AM, Thiago Macieira <thiago at macieira.org>wrote:

> Em dom 09 mar 2014, às 20:52:11, Lakshman escreveu:
> > Thank you Thiago for helpful suggestions.
>
> Hello Lashman.
>
> Thanks for the update. The patch looks much better now. I just have one
> question:
>
> +                       ui.airTempLabel-
> >setText(QApplication::translate("MainTab", "Air temp
> [%1]").arg(get_temp_unit().at(1)));
>
> Why do you have the at(1) there?
>

Hi Thiago, I used 'at' to access the unit of the variable by ignoring
degree symbol, which you suggested it completely wrong. Since
get_temp_unit() returns (^\{circ}C), I am grabbing the unit only from the
string.



>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>    Software Architect - Intel Open Source Technology Center
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>

Thank you,
Lakshman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140310/f590b5e9/attachment.html>


More information about the subsurface mailing list