Change double data types to qreal
(cherry picked from commit 8d365c57bb465514ca427bfe77b04968cd1af05b)