forked from qt-creator/qt-creator
Debugger: Re-enable breakpoint state handling with keyboard
This patch re-enables disabling or enabling breakpoints using
the respective keyboard shortcut.
Had been disabled since d6911fd10c.
Change-Id: Iea3ce679bafcc78910be07984fd03b4a6e66eb8b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2565,17 +2565,17 @@ bool BreakpointManager::setData(const QModelIndex &idx, const QVariant &value, i
|
|||||||
// setCurrentIndex(index(row, 0)); FIXME
|
// setCurrentIndex(index(row, 0)); FIXME
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// if (kev->key() == Qt::Key_Space) {
|
if (kev->key() == Qt::Key_Space) {
|
||||||
// const QModelIndexList selectedIds = ev.selectedRows();
|
const QModelIndexList selectedIds = ev.selectedRows();
|
||||||
// if (!selectedIds.isEmpty()) {
|
if (!selectedIds.isEmpty()) {
|
||||||
// const GlobalBreakpoints gbps = findBreakpointsByIndex(selectedIds);
|
const GlobalBreakpoints gbps = findBreakpointsByIndex(selectedIds);
|
||||||
// const bool isEnabled = gbps.isEmpty() || gbps.at(0)->isEnabled();
|
const bool isEnabled = gbps.isEmpty() || gbps.at(0)->isEnabled();
|
||||||
// for (GlobalBreakpoint gbp : gbps)
|
for (GlobalBreakpoint gbp : gbps)
|
||||||
// gbp->m_parameters.enabled = isEnabled;
|
gbp->setEnabled(!isEnabled);
|
||||||
// scheduleSynchronization();
|
// scheduleSynchronization();
|
||||||
// return true;
|
return true;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ev.as<QMouseEvent>(QEvent::MouseButtonDblClick)) {
|
if (ev.as<QMouseEvent>(QEvent::MouseButtonDblClick)) {
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ private:
|
|||||||
void updateMarker();
|
void updateMarker();
|
||||||
void updateMarkerIcon();
|
void updateMarkerIcon();
|
||||||
void destroyMarker();
|
void destroyMarker();
|
||||||
void scheduleSynchronization();
|
// void scheduleSynchronization();
|
||||||
QPointer<DebuggerEngine> usingEngine() const;
|
QPointer<DebuggerEngine> usingEngine() const;
|
||||||
|
|
||||||
bool isEngineRunning() const;
|
bool isEngineRunning() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user