Commit 7e9e3a81 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: display bool values as 'true' or 'false' when appropriate

Change-Id: Ic453ec79c353beef04c67c9d47f8436b0a119243
Reviewed-by: default avatarhjk <>
parent 2beb5ec6
......@@ -463,10 +463,19 @@ static QString translate(const QString &str)
QString WatchModel::formattedValue(const WatchData &data) const
const QByteArray qtNamespace = engine()->qtNamespace();
const QString &value = data.value;
if (data.type == "bool") {
if (value == QLatin1String("0"))
return QLatin1String("false");
if (value == QLatin1String("1"))
return QLatin1String("true");
return value;
const QByteArray qtNamespace = engine()->qtNamespace();
int format = itemFormat(data);
if (isIntType(data.type)) {
if (value.isEmpty())
return value;
Supports Markdown
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