forked from qt-creator/qt-creator
Debugger: Replace some uses of deprecated QVariant::type
Change-Id: I2225668b51d82e017cda305737f8c93fdaf97bd7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -776,7 +776,7 @@ void QmlEngine::assignValueInDebugger(WatchItem *item,
|
||||
const QString &expression, const QVariant &editValue)
|
||||
{
|
||||
if (!expression.isEmpty()) {
|
||||
QTC_CHECK(editValue.type() == QVariant::String);
|
||||
QTC_CHECK(editValue.typeId() == QVariant::String);
|
||||
QVariant value;
|
||||
QString val = editValue.toString();
|
||||
if (item->type == "boolean")
|
||||
@@ -855,7 +855,7 @@ static ConsoleItem *constructLogItemTree(const QVariant &result,
|
||||
|
||||
QString text;
|
||||
ConsoleItem *item = nullptr;
|
||||
if (result.type() == QVariant::Map) {
|
||||
if (result.typeId() == QVariant::Map) {
|
||||
if (key.isEmpty())
|
||||
text = "Object";
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user