[Converter Runner] Try QLocale::toDouble to get input value

Review Request #127802 - Created April 30, 2016 and submitted

Information
Kai Uwe Broulik
kdeplasma-addons
Plasma/5.6
Reviewers
plasma

Only if that fails, it tries QString::toDouble and if even that fails it skips. This allows the user to enter numbers in a more natural way.

I can now convert "5,5ft" (comma being the decimal indicator in German) or "1.524m" (period being the thousand separator in German).

I can also still enter "5.5ft".

Aleix Pol Gonzalez
David Edmundson
Kai Uwe Broulik
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 54a37fc80c33c1f76faa4975868d1cc824d38dc2 by Kai Uwe Broulik to branch Plasma/5.6.
Loading...