Debugger: Shorten function signatures in break and stack views

Especially useful with std:: types.

Change-Id: Iee7ae26b25ac162ac31944cd2a9c16ca4bf63f1c
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
hjk
2014-07-03 00:46:51 +02:00
parent ca9e2dd9d7
commit dbbddd9fde
2 changed files with 4 additions and 2 deletions

View File

@@ -31,6 +31,7 @@
#include "debuggeractions.h"
#include "debuggercore.h"
#include "simplifytype.h"
#include <utils/qtcassert.h>
#include <utils/savedaction.h>
@@ -103,7 +104,7 @@ QVariant StackHandler::data(const QModelIndex &index, int role) const
case 0: // Stack frame level
return QString::number(frame.level);
case 1: // Function name
return frame.function;
return simplifyType(frame.function);
case 2: // File name
return frame.file.isEmpty() ? frame.from : QFileInfo(frame.file).fileName();
case 3: // Line number