[Marble-devel] Review Request 121875: Tweaking MarbleLocale & adding elevation widget to AnnotationPlugin

Illya Kovalevskyy illya.kovalevskyy at gmail.com
Wed Jan 7 11:40:52 UTC 2015



> On Jan. 7, 2015, 1:02 a.m., Bernhard Beschow wrote:
> > tests/LocaleTest.cpp, line 77
> > <https://git.reviewboard.kde.org/r/121875/diff/2/?file=338571#file338571line77>
> >
> >     Did you try using QCOMPARE here? According to the documentation [1], qFuzzyCompare() is used for floats and doubles (i.e. qreals), so QCOMPARE should work.
> >     
> >     [1] http://qt-project.org/doc/qt-4.8/qtest.html#QCOMPARE

qFuzzyCompare works for 10^-8 or smth, but precision of our conversation constants is much much lower. It's around 10^-4 or 10^-4, so I'd like to compare these up to 0.3(3).


- Illya


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


On Jan. 6, 2015, 7:49 p.m., Illya Kovalevskyy wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121875/
> -----------------------------------------------------------
> 
> (Updated Jan. 6, 2015, 7:49 p.m.)
> 
> 
> Review request for Marble, Dennis Nienhüser and Torsten Rahn.
> 
> 
> Repository: marble
> 
> 
> Description
> -------
> 
> This patch expands MarbleLocale API, so it covers measurement units and also does add elevation widget to annotation plugin.
> 
> Related GCI task: http://www.google-melange.com/gci/task/view/google/gci2014/5879562479075328
> 
> 
> Diffs
> -----
> 
>   src/lib/marble/CMakeLists.txt 807df82 
>   src/lib/marble/EditTextAnnotationDialog.h a842ade 
>   src/lib/marble/EditTextAnnotationDialog.cpp 877f340 
>   src/lib/marble/EditTextAnnotationDialog.ui 67256c6 
>   src/lib/marble/ElevationWidget.ui PRE-CREATION 
>   src/lib/marble/MarbleGlobal.h bd7d63f 
>   src/lib/marble/MarbleLocale.h 0b5414b 
>   src/lib/marble/MarbleLocale.cpp 653f69b 
>   tests/CMakeLists.txt 36ef40b 
>   tests/LocaleTest.cpp PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/121875/diff/
> 
> 
> Testing
> -------
> 
> Positive
> 
> 
> Thanks,
> 
> Illya Kovalevskyy
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20150107/80351c3b/attachment.html>


More information about the Marble-devel mailing list