QmlDesigner.PropertyEditor: Adding and fixing color conversion

Adding proper color conversion as C++ helper functions that can
handle the alpha channel.

Change-Id: If48cd11ff71efb472d331ed6fd79464e1c5d572d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>