Debugger: Format addresses in tooltips.

Pad to 4 digit groups and insert colons for readability.

Change-Id: Icdda754e1d5ac26fd5bb90b5434b0cfa1f7a2f4e
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Friedemann Kleint
2012-08-21 16:31:03 +02:00
committed by hjk
parent 0e8ac9b663
commit 04ad4ba333
5 changed files with 32 additions and 15 deletions

View File

@@ -30,6 +30,7 @@
#include "threadshandler.h"
#include "gdb/gdbmi.h"
#include "watchutils.h"
#include "debuggerconstants.h"
#include "debuggercore.h"
@@ -75,9 +76,7 @@ static QString threadToolTip(const ThreadData &thread)
str << thread.function << "<br>";
if (!thread.fileName.isEmpty())
str << thread.fileName << ':' << thread.lineNumber << "<br>";
str.setIntegerBase(16);
str << "0x" << thread.address;
str.setIntegerBase(10);
str << formatToolTipAddress(thread.address);
}
str << "</table></body></html>";
return rc;