Debugger/Utils: Fix index passing of ItemViewEvents

... are restore 4.1 double click behavior in breakpoint view.

Change-Id: If211b9708c0173e940e4b02a9b7b27f4ed78c868
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2016-09-14 14:28:53 +02:00
committed by hjk
parent 7f8acd8fda
commit 022120658d
3 changed files with 50 additions and 33 deletions

View File

@@ -1938,6 +1938,8 @@ bool BreakHandler::setData(const QModelIndex &idx, const QVariant &value, int ro
if (Breakpoint b = findBreakpointByIndex(idx)) {
if (idx.column() >= BreakpointAddressColumn)
editBreakpoints({ b }, ev.view());
else
b.gotoLocation();
} else {
addBreakpoint();
}