Commit 0e54b6ca authored by hjk's avatar hjk
Browse files

debugger: fix assigning new values to structure members

parent 4c085581
......@@ -644,8 +644,18 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const
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")
return QVariant();
case LocalsINameRole:
return data.iname;
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