Commit 62904f32 authored by hjk's avatar hjk
Browse files

Debugger: Also allow formatting negative numbers as hexadecimal

Change-Id: I0324c53b42424f25b1c70c10d3f31b515398712d
Reviewed-by: default avatarTim Sander <>
Reviewed-by: default avatarhjk <>
parent 8c353f99
......@@ -1319,11 +1319,14 @@ TypeFormatList WatchModel::typeFormatList(const WatchData &data) const
// Fixed artificial integral types.
data.value.toULongLong(&ok, 10);
QString v = data.value;
if (v.startsWith(QLatin1Char('-')))
v = v.mid(1);
v.toULongLong(&ok, 10);
if (!ok)
data.value.toULongLong(&ok, 16);
v.toULongLong(&ok, 16);
if (!ok)
data.value.toULongLong(&ok, 8);
v.toULongLong(&ok, 8);
if (ok) {
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