forked from qt-creator/qt-creator
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:
@@ -29,6 +29,7 @@
|
||||
**************************************************************************/
|
||||
|
||||
#include "watchdata.h"
|
||||
#include "watchutils.h"
|
||||
|
||||
#include <QTextStream>
|
||||
#include <QDebug>
|
||||
@@ -388,11 +389,9 @@ QString WatchData::toToolTip() const
|
||||
val += tr(" ... <cut off>");
|
||||
}
|
||||
formatToolTipRow(str, tr("Value"), val);
|
||||
formatToolTipRow(str, tr("Object Address"),
|
||||
QString::fromLatin1(hexAddress()));
|
||||
if (referencingAddress)
|
||||
formatToolTipRow(str, tr("Referencing Address"),
|
||||
QString::fromLatin1(hexReferencingAddress()));
|
||||
formatToolTipRow(str, tr("Object Address"), formatToolTipAddress(address));
|
||||
if (referencingAddress)
|
||||
formatToolTipRow(str, tr("Referencing Address"), formatToolTipAddress(referencingAddress));
|
||||
if (size)
|
||||
formatToolTipRow(str, tr("Static Object Size"), tr("%n bytes", 0, size));
|
||||
formatToolTipRow(str, tr("Internal ID"), QLatin1String(iname));
|
||||
|
||||
Reference in New Issue
Block a user