Cleanup usage of QVariant::Type.