Commit ca9e2dd9 authored by hjk's avatar hjk

Debugger: Show base class names simplified

Especially for highly templated code it's awful to have the
name column populated by 'std::basic_string<...' gibberish.

Change-Id: I7344bed77a0e29cf88f031e1a663ed6c4c1c7b51
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 977db804
......@@ -41,6 +41,7 @@
#include "watchutils.h"
#include <utils/algorithm.h>
#include <utils/basetreeview.h>
#include <utils/qtcassert.h>
#include <utils/savedaction.h>
......@@ -1070,6 +1071,14 @@ QString WatchModel::displayName(const WatchItem *item) const
result = QLatin1Char('*') + item->parent->name;
else
result = removeNamespaces(item->name);
// Simplyfy names that refer to base classes.
if (result.startsWith(QLatin1Char('['))) {
result = simplifyType(result);
if (result.size() > 30)
result = result.leftRef(27) + QLatin1String("...]");
}
return result;
}
......
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