debugger: show the returned value as 'returned value', not $23

Task-number: QTCREATORBUG-6894
Change-Id: Ia5d666f2f403eddbbf027a0ac7ac5a708e2425c1
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-03-14 13:39:34 +01:00
committed by hjk
parent 6f056c9ef8
commit 02da7db7e1

View File

@@ -734,8 +734,10 @@ QString WatchModel::display(const WatchItem *item, int col) const
QString result;
switch (col) {
case 0:
if (item->name.isEmpty())
if (m_type == WatchersWatch && item->name.isEmpty())
result = tr("<Edit>");
else if (m_type == ReturnWatch && item->iname.count('.') == 1)
result = tr("returned value");
else if (item->name == QLatin1String("*") && item->parent)
result = QLatin1Char('*') + item->parent->name;
else