From 04ad4ba333356bd14617cf725376fc679cc728fd Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 21 Aug 2012 16:31:03 +0200 Subject: Debugger: Format addresses in tooltips. Pad to 4 digit groups and insert colons for readability. Change-Id: Icdda754e1d5ac26fd5bb90b5434b0cfa1f7a2f4e Reviewed-by: hjk --- src/plugins/debugger/stackframe.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/plugins/debugger/stackframe.cpp') 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 #include @@ -87,13 +88,9 @@ QString StackFrame::toToolTip() const QString res; QTextStream str(&res); str << ""; - if (address) { - str << ""; + if (address) + str << ""; if (!function.isEmpty()) str << ""; if (!file.isEmpty()) -- cgit v1.2.1
" << tr("Address:") << "0x"; - str.setIntegerBase(16); - str << address; - } - str.setIntegerBase(10); - str << "
" << tr("Address:") << "" + << formatToolTipAddress(address) << "
" << tr("Function:") << "" << function << "