forked from qt-creator/qt-creator
Debugger: Move string length annotation to type column
... and make it clear what it is. Fixes: QTCREATORBUG-30065 Change-Id: Iccbe0f069569ef2682363eb889f34081e2c2b4d7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -826,8 +826,6 @@ static QString formattedValue(const WatchItem *item)
|
|||||||
v.chop(1);
|
v.chop(1);
|
||||||
v.append("...\"");
|
v.append("...\"");
|
||||||
}
|
}
|
||||||
if (item->valuelen > 0)
|
|
||||||
v += QString(" (%1)").arg(item->valuelen);
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -961,6 +959,8 @@ static QString displayType(const WatchItem *item)
|
|||||||
result += QString(":%1").arg(item->bitsize);
|
result += QString(":%1").arg(item->bitsize);
|
||||||
result.remove('\'');
|
result.remove('\'');
|
||||||
result = watchModel(item)->removeNamespaces(result);
|
result = watchModel(item)->removeNamespaces(result);
|
||||||
|
if (item->valuelen > 0)
|
||||||
|
result = Tr::tr("%1 of length %2").arg(result).arg(item->valuelen);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user