aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-03-14 13:39:34 +0100
committerhjk <[email protected]>2012-03-14 13:40:46 +0100
commit02da7db7e12a9b5faab40f6a2b58b65a5ec83f22 (patch)
tree331d5daa768f7050c4ac793f1e3ca51851f3581b /src/plugins/debugger/watchhandler.cpp
parent6f056c9ef8dd9f104c556cdbe1cc371db9e25e52 (diff)
debugger: show the returned value as 'returned value', not $23
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 0dbe634618b..7a3b7361c6e 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -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