Commit 1f338e53 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by hjk

Fix debugger watch data tooltip.

Display value correctly, omit empty display types.

Change-Id: I840a8bb1db65d721f871b9c33ca327f2ba6c8e26
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c59c1661
...@@ -355,8 +355,9 @@ QString WatchData::toToolTip() const ...@@ -355,8 +355,9 @@ QString WatchData::toToolTip() const
formatToolTipRow(str, tr("Name"), name); formatToolTipRow(str, tr("Name"), name);
formatToolTipRow(str, tr("Expression"), QLatin1String(exp)); formatToolTipRow(str, tr("Expression"), QLatin1String(exp));
formatToolTipRow(str, tr("Internal Type"), QLatin1String(type)); formatToolTipRow(str, tr("Internal Type"), QLatin1String(type));
formatToolTipRow(str, tr("Displayed Type"), displayedType); if (!displayedType.isEmpty())
QString val = valuetooltip.isEmpty() ? valuetooltip : value; formatToolTipRow(str, tr("Displayed Type"), displayedType);
QString val = valuetooltip.isEmpty() ? value : valuetooltip;
if (val.size() > 1000) { if (val.size() > 1000) {
val.truncate(1000); val.truncate(1000);
val += tr(" ... <cut off>"); val += tr(" ... <cut off>");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment