Commit dbbddd9f authored by hjk's avatar hjk

Debugger: Shorten function signatures in break and stack views

Especially useful with std:: types.

Change-Id: Iee7ae26b25ac162ac31944cd2a9c16ca4bf63f1c
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent ca9e2dd9
......@@ -34,6 +34,7 @@
#include "debuggercore.h"
#include "debuggerengine.h"
#include "debuggerstringutils.h"
#include "simplifytype.h"
#include <extensionsystem/invoker.h>
#include <utils/hostosinfo.h>
......@@ -593,7 +594,7 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const
case 1:
if (role == Qt::DisplayRole) {
if (!response.functionName.isEmpty())
return response.functionName;
return simplifyType(response.functionName);
if (!data.functionName.isEmpty())
return data.functionName;
if (data.type == BreakpointAtMain
......
......@@ -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
......
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