Initial Qt5 porting
-Move qVariantFromValue and etc to QVariant::fromValue and
QVariant::value
-Replace QWeakPointer with QPointer