Commit c71c00cf authored by hjk's avatar hjk Committed by hjk

Debugger: Re-enable editing through Locals&Expressions view

Fix recent regression in double-click event propagation.

Change-Id: Ic69d0d95701c8168331b1627fbd9334b8f5dc0d4
Reviewed-by: default avatarhjk <hjk@qt.io>
parent d7a23f97
......@@ -1097,7 +1097,7 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
m_engine->assignValueInDebugger(item, item->expression(), value);
break;
}
break;
return true;
case LocalsExpandedRole:
if (value.toBool()) {
......@@ -1109,25 +1109,25 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
}
if (item->iname.contains('.'))
emit columnAdjustmentRequested();
break;
return true;
case LocalsTypeFormatRole:
setTypeFormat(item->type, value.toInt());
m_engine->updateLocals();
break;
return true;
case LocalsIndividualFormatRole: {
setIndividualFormat(item->iname, value.toInt());
m_engine->updateLocals();
break;
return true;
}
case BaseTreeView::ItemActivatedRole:
m_engine->selectWatchData(item->iname);
break;
return true;
}
return true;
return false;
}
Qt::ItemFlags WatchModel::flags(const QModelIndex &idx) const
......
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