summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlcppengine.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-01-10 01:07:01 +0100
committerhjk <hjk@theqtcompany.com>2015-01-15 12:19:33 +0100
commit3b2d2eae17fdbab5ba65937909a7e92bc20c8224 (patch)
tree16141aae32ed4ff6abe57580f19a54ffaa1373f2 /src/plugins/debugger/qml/qmlcppengine.cpp
parentb88cdef0a3b170ae020f3f89ed91fd1a14daf6a2 (diff)
downloadqt-creator-3b2d2eae17fdbab5ba65937909a7e92bc20c8224.tar.gz
Debugger: Re-work breakpoint storage handling
The actual data is now in a TreeModel. As interface to individual breakpoints there's a new Breakpoint class essentially providing a checked handle. On the user code side breakHandler()->foo(bpId) is replaced by bp.foo(). Change-Id: I82f435bad6301fce85a1d82bf6bf39e9ddba511e Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/qml/qmlcppengine.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlcppengine.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/debugger/qml/qmlcppengine.cpp b/src/plugins/debugger/qml/qmlcppengine.cpp
index 9882b7deb2..b65e9d8a44 100644
--- a/src/plugins/debugger/qml/qmlcppengine.cpp
+++ b/src/plugins/debugger/qml/qmlcppengine.cpp
@@ -30,8 +30,10 @@
#include "qmlcppengine.h"
#include "qmlengine.h"
+
#include <debugger/debuggerruncontrol.h>
#include <debugger/debuggerstartparameters.h>
+#include <debugger/breakhandler.h>
#include <debugger/stackhandler.h>
#include <debugger/watchhandler.h>
@@ -244,10 +246,10 @@ void QmlCppEngine::attemptBreakpointSynchronization()
}
}
-bool QmlCppEngine::acceptsBreakpoint(BreakpointModelId id) const
+bool QmlCppEngine::acceptsBreakpoint(Breakpoint bp) const
{
- return m_cppEngine->acceptsBreakpoint(id)
- || m_qmlEngine->acceptsBreakpoint(id);
+ return m_cppEngine->acceptsBreakpoint(bp)
+ || m_qmlEngine->acceptsBreakpoint(bp);
}
void QmlCppEngine::selectThread(ThreadId threadId)