forked from qt-creator/qt-creator
Fix debugger watch data tooltip.
Display value correctly, omit empty display types. Change-Id: I840a8bb1db65d721f871b9c33ca327f2ba6c8e26 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -355,8 +355,9 @@ QString WatchData::toToolTip() const
|
||||
formatToolTipRow(str, tr("Name"), name);
|
||||
formatToolTipRow(str, tr("Expression"), QLatin1String(exp));
|
||||
formatToolTipRow(str, tr("Internal Type"), QLatin1String(type));
|
||||
formatToolTipRow(str, tr("Displayed Type"), displayedType);
|
||||
QString val = valuetooltip.isEmpty() ? valuetooltip : value;
|
||||
if (!displayedType.isEmpty())
|
||||
formatToolTipRow(str, tr("Displayed Type"), displayedType);
|
||||
QString val = valuetooltip.isEmpty() ? value : valuetooltip;
|
||||
if (val.size() > 1000) {
|
||||
val.truncate(1000);
|
||||
val += tr(" ... <cut off>");
|
||||
|
||||
Reference in New Issue
Block a user