debugger: fix assigning new values to structure members

This commit is contained in:
hjk
2010-08-18 13:44:05 +02:00
parent 4c085581f9
commit 0e54b6caa1

View File

@@ -644,8 +644,18 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const
break;
}
case LocalsExpressionRole:
return data.exp;
case LocalsExpressionRole: {
if (!data.exp.isEmpty())
return data.exp;
quint64 addr = data.coreAddress();
if (addr && !data.type.isEmpty())
return QString("*(%1*)%2").arg(data.type).arg(addr);
WatchItem *parent = item->parent;
if (parent && !parent->exp.isEmpty())
return QString("(%1).%2")
.arg(QString::fromLatin1(parent->exp)).arg(data.name);
return QVariant();
}
case LocalsINameRole:
return data.iname;