forked from qt-creator/qt-creator
Debugger: Rework display length limitation systems
There are two values now, one to limit an entry in the L&E view (default 100) and a hard upper limit (at 1 mio). If displayed values are elided, the true length is shown in addition. Change-Id: I180b70446c18e258c164e5af75b88d4c8b6c53f2 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -695,6 +695,14 @@ QString WatchModel::formattedValue(const WatchData &data) const
|
||||
}
|
||||
}
|
||||
|
||||
if (data.elided) {
|
||||
QString v = value;
|
||||
v.chop(1);
|
||||
QString len = data.elided > 0 ? QString::number(data.elided)
|
||||
: QLatin1String("unknown length");
|
||||
return v + QLatin1String("\"... (") + len + QLatin1Char(')');
|
||||
}
|
||||
|
||||
return translate(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user