diff options
Diffstat (limited to 'src/plugins/debugger/stackframe.cpp')
-rw-r--r-- | src/plugins/debugger/stackframe.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/plugins/debugger/stackframe.cpp b/src/plugins/debugger/stackframe.cpp index 687aa7a443..2a9441bde0 100644 --- a/src/plugins/debugger/stackframe.cpp +++ b/src/plugins/debugger/stackframe.cpp @@ -29,6 +29,7 @@ **************************************************************************/ #include "stackframe.h" +#include "watchutils.h" #include <QFileInfo> #include <QDebug> @@ -87,13 +88,9 @@ QString StackFrame::toToolTip() const QString res; QTextStream str(&res); str << "<html><body><table>"; - if (address) { - str << "<tr><td>" << tr("Address:") << "</td><td>0x"; - str.setIntegerBase(16); - str << address; - } - str.setIntegerBase(10); - str << "</td></tr>"; + if (address) + str << "<tr><td>" << tr("Address:") << "</td><td>" + << formatToolTipAddress(address) << "</td></tr>"; if (!function.isEmpty()) str << "<tr><td>" << tr("Function:") << "</td><td>" << function << "</td></tr>"; if (!file.isEmpty()) |