QmlDesigner: Refactor enumeration handling

Change-Id: I0e163147a0303741af52127ece6f6afd0d2aa658
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
QmlDesigner: add version check for the puppet

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