summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/debugger/breakpointmarker.cpp5
-rw-r--r--src/plugins/debugger/breakpointmarker.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/debugger/breakpointmarker.cpp b/src/plugins/debugger/breakpointmarker.cpp
index 0821ec1063..da309cd5e0 100644
--- a/src/plugins/debugger/breakpointmarker.cpp
+++ b/src/plugins/debugger/breakpointmarker.cpp
@@ -73,6 +73,11 @@ void BreakpointMarker::dragToLine(int lineNumber)
breakHandler()->changeLineNumberFromMarker(m_id, lineNumber);
}
+void BreakpointMarker::clicked()
+{
+ breakHandler()->removeBreakpoint(m_id);
+}
+
void BreakpointMarker::updateFileName(const QString &fileName)
{
BaseTextMark::updateFileName(fileName);
diff --git a/src/plugins/debugger/breakpointmarker.h b/src/plugins/debugger/breakpointmarker.h
index 0a972d4375..39d40f6731 100644
--- a/src/plugins/debugger/breakpointmarker.h
+++ b/src/plugins/debugger/breakpointmarker.h
@@ -48,6 +48,8 @@ public:
void updateFileName(const QString &fileName);
bool isDraggable() const { return true; }
void dragToLine(int lineNumber);
+ bool isClickable() const { return true; }
+ void clicked();
private:
BreakpointModelId m_id;