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:
@@ -284,7 +284,7 @@ QByteArray MacroExpander::expand(const QByteArray &stringWithVariables) const
|
||||
|
||||
QVariant MacroExpander::expandVariant(const QVariant &v) const
|
||||
{
|
||||
const auto type = QMetaType::Type(v.type());
|
||||
const int type = v.typeId();
|
||||
if (type == QMetaType::QString) {
|
||||
return expand(v.toString());
|
||||
} else if (type == QMetaType::QStringList) {
|
||||
|
||||
Reference in New Issue
Block a user