Make values converted to user-defined units for Double values
ClosedPublic

Authored by staniek on Dec 28 2015, 2:59 PM.

Details

Summary

Make values converted to user-defined units for Double values

Extra:

  • handle all combination of (hasUnit) and (locale is C) cases
  • round double to ints using QLocale::toString()
  • add suffix to the editor spin box based on the "unit" option
  • add suitable "Double cm" property to the example app

T1235

Test Plan

Try the "Double cm" property in the KPropertyExample

Diff Detail

Repository
R13 KProperty
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
staniek updated this revision to Diff 1644.Dec 28 2015, 2:59 PM
staniek retitled this revision from to Make values converted to user-defined units for Double values.
staniek updated this object.
staniek edited the test plan for this revision. (Show Details)
staniek added a reviewer: piggz.
piggz accepted this revision.Dec 28 2015, 7:06 PM
piggz edited edge metadata.

Passes my test. kreportexample now displays values correctly.

This revision is now accepted and ready to land.Dec 28 2015, 7:06 PM
staniek closed this revision.Dec 28 2015, 7:36 PM

Done, thanks!