Review Request 120000: New Thermal and Electrical Units and Unit Convienience Function for KUnitConversion

Garret Wassermann gwasser at gmail.com
Sun Jul 24 22:45:11 UTC 2016



> On July 23, 2016, 8:29 a.m., Olivier Churlaud wrote:
> > It seems good to me.
> > 
> > If you are not told to hold this patch before friday, take it for a "Ship it" (and don't forget to add a line "REVIEW: 120000" in your commit message)

Hi, I made the change. Also, I do not have commit rights yet. Can someone commit for me, or what do I need to do to get a developer commit rights? Thanks!


- Garret


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


On July 24, 2016, 6:43 p.m., Garret Wassermann wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120000/
> -----------------------------------------------------------
> 
> (Updated July 24, 2016, 6:43 p.m.)
> 
> 
> Review request for KDE Frameworks and John Layt.
> 
> 
> Repository: kunitconversion
> 
> 
> Description
> -------
> 
> New Thermal and Electrical Units and Convienience Function for KUnitConversion
> 
> 
> Diffs
> -----
> 
>   README.md fe8cbe8 
>   src/converter.cpp 0a7f862 
>   src/electrical_current.cpp PRE-CREATION 
>   src/electrical_current_p.h PRE-CREATION 
>   src/electrical_resistance.cpp PRE-CREATION 
>   src/electrical_resistance_p.h PRE-CREATION 
>   src/energy.cpp f525031 
>   src/thermal_conductivity.cpp PRE-CREATION 
>   src/thermal_conductivity_p.h PRE-CREATION 
>   src/thermal_flux.cpp PRE-CREATION 
>   src/thermal_flux_p.h PRE-CREATION 
>   src/thermal_generation.cpp PRE-CREATION 
>   src/thermal_generation_p.h PRE-CREATION 
>   src/unit.h e440346 
>   src/value.h c602150 
>   src/value.cpp a283be7 
>   src/voltage.cpp PRE-CREATION 
>   src/voltage_p.h PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/120000/diff/
> 
> 
> Testing
> -------
> 
> I added some fundamental (base SI) units as well as some common derived units in SI and English/Imperial system, mostly for electrical or thermal units. I also added a simple member function to the Value class, symbolAsString(), to immediately receive the current unit assigned to the Value object as a QString. I was running into issues with my code where doing v.unit()->symbol() wasn't working because I was getting KSharedPointers instead of the object, and the program would just crash. I just wanted the string! So I made a function, which helped with testing of the units.
> 
> The new categories work fine under my test program. I was able to convert thermal units back and forth in my test program, so seems ok. The values also appear correct from my tests (as long as I didn't mess anything up by hand!).
> 
> First time submitting review, so please let me know if there is something else I should do better next time, thank you.
> 
> 
> Thanks,
> 
> Garret Wassermann
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160724/cef08544/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list