Units are not converted for values (Double type)
Closed, ResolvedPublic

Description

(originally reported by @piggz)

Units are not converted for values (Double type). To reproduce:

  • Create a KProperty::Double property
  • Set value to KReportUnit(KReportUnit::Centimeter).fromUserValue(1.0) (which is 28.something)
  • Set option "unit" to "cm"

When the property is selected to edit, the value is displayed correctly as "1.0" as it goes through the editors formatting functions which take into account the "unit" property and convert the value for display. But, when not selected (editor not present), no such path is taken and the value displayed is 28.something.