fix for issues #10259 and #19978

#10259
qdesigner_propertysheet.cpp:  method metaProperty(int index)

-------------------------

qdesigner_internal::PropertySheetEnumValue pse = qdesigner_internal::PropertySheetEnumValue(v.toInt(), designerMetaEnumFor(p->enumerator()));

-------------------------

v.toInt() conversion is wrong since QVariant<Qt::FucusPolicy> declared as user metatype in qtsetup.cpp and have no rules for convert it to integer.

#19978
trying to access to "_designer" pointer after object has been destoyed;