qmldesigner: add explicit cast to enum conversion

Xcode 5 clang is picky about conversion between enums.
Adding an explicit cast.

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