[Kstars-devel] [patch] Change magnitude display in details?dialog

Khudyakov Alexey alexey.skladnoy at gmail.com
Fri Mar 6 17:08:10 CET 2009


On Thursday 05 March 2009 21:28:28 Akarsh Simha wrote:
> > Yes it would. Will make it easier I believe. AFAIK `m' superscript is
> > international designation.
> >
> > Also it's possible to put string "%1 <sup>m</sup>"  into
> > internationalization machinery with comment like: "You generally need not
> > to translate this string unless you have reasons to do so".
>
> Great! Go ahead and make the replacement whenever / wherever you
> can. Just for beginners who use our software, it might be a good idea
> to add a tooltip that says that the <sup>m</sup> indicates a
> magnitude.
>
Patchset updated

* helper_functions.patch 

Add helper function to convert magnitude to string representation suitable for 
QLabel. It takes care for special cases. 

It was put in separate source file. It is meant to hold various small utility 
functions. Probably there is more suitable place for it but couldn't find it.

* details_m_superscript.patch 

Change how does magnitude displayed in details dialog. Use "m" superscript 
instead of "mag."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helper_functions.patch
Type: text/x-diff
Size: 4850 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20090306/6e2dd6d2/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: details_m_superscript.patch
Type: text/x-diff
Size: 2098 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20090306/6e2dd6d2/attachment-0001.bin 


More information about the Kstars-devel mailing list