Fix compilation with Qt 4.

Change-Id: Id5043a1f208554b8e73a50ebacdb655af53dc8b5
Reviewed-by: hjk <hjk121@nokiamail.com>
QmlDesigner.PropertyEditor: fixing templates

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