Replaced QVariant::Type(deprecated) by QMetaType::Type