forked from qt-creator/qt-creator
Fix QMetaType::type() related deprecation warnings
Not in sdktool, which still builds with Qt 5.15 Change-Id: I6e6f4331127b821e471e2840e7959cd65e6419e9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -800,7 +800,7 @@ void CMakeGeneratorKitAspectFactory::upgrade(Kit *k)
|
||||
QTC_ASSERT(k, return);
|
||||
|
||||
const QVariant value = k->value(GENERATOR_ID);
|
||||
if (value.type() != QVariant::Map) {
|
||||
if (value.typeId() != QMetaType::QVariantMap) {
|
||||
GeneratorInfo info;
|
||||
const QString fullName = value.toString();
|
||||
const int pos = fullName.indexOf(" - ");
|
||||
|
||||
Reference in New Issue
Block a user