Debugger: Re-enable editing through Locals&Expressions view

Fix recent regression in double-click event propagation.

Change-Id: Ic69d0d95701c8168331b1627fbd9334b8f5dc0d4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
hjk
2016-09-20 14:11:25 +02:00
committed by hjk
parent d7a23f9716
commit c71c00cf48

View File

@@ -1097,7 +1097,7 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
m_engine->assignValueInDebugger(item, item->expression(), value); m_engine->assignValueInDebugger(item, item->expression(), value);
break; break;
} }
break; return true;
case LocalsExpandedRole: case LocalsExpandedRole:
if (value.toBool()) { if (value.toBool()) {
@@ -1109,25 +1109,25 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
} }
if (item->iname.contains('.')) if (item->iname.contains('.'))
emit columnAdjustmentRequested(); emit columnAdjustmentRequested();
break; return true;
case LocalsTypeFormatRole: case LocalsTypeFormatRole:
setTypeFormat(item->type, value.toInt()); setTypeFormat(item->type, value.toInt());
m_engine->updateLocals(); m_engine->updateLocals();
break; return true;
case LocalsIndividualFormatRole: { case LocalsIndividualFormatRole: {
setIndividualFormat(item->iname, value.toInt()); setIndividualFormat(item->iname, value.toInt());
m_engine->updateLocals(); m_engine->updateLocals();
break; return true;
} }
case BaseTreeView::ItemActivatedRole: case BaseTreeView::ItemActivatedRole:
m_engine->selectWatchData(item->iname); m_engine->selectWatchData(item->iname);
break; return true;
} }
return true; return false;
} }
Qt::ItemFlags WatchModel::flags(const QModelIndex &idx) const Qt::ItemFlags WatchModel::flags(const QModelIndex &idx) const