Re: Unit conversion

2008-09-01 Thread Petri Damstén
On Monday 01 September 2008 16:07:08 Gerhard Gappmeier wrote: > The idea behind the tables is, > that it is not necessary to make own classes for each unit that > uses a different conversion and to write the conversion code again > and again for everything. Simpler conversions already use QHash an

Re: Unit conversion

2008-09-01 Thread Gerhard Gappmeier
Hi Petri there is also a unit conversion plasmoid in playground/base/plasma/applets/unitconverter This uses very generic code and just works on tables. But the tables are very small at the moment and don't contain many units. It's just an example. Maybe we can put this code together with your l