diff options
author | hjk <qtc-committer@nokia.com> | 2012-01-24 16:41:30 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-01-24 17:10:28 +0100 |
commit | 720192356212ecf0fe94d45c0748389834eaf7f6 (patch) | |
tree | 7888e7d65d11b13140a56265ce9fc5c9b34a5513 /src/plugins/debugger/breakpoint.cpp | |
parent | 983a6ef5066da3ee2b2a471eab50204023dd663b (diff) | |
download | qt-creator-720192356212ecf0fe94d45c0748389834eaf7f6.tar.gz |
debugger: move isCppBreakpoint to Breakpoint
Change-Id: I241401fa010166982e5a95a699c99fbaa87188ef
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/debugger/breakpoint.cpp')
-rw-r--r-- | src/plugins/debugger/breakpoint.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/debugger/breakpoint.cpp b/src/plugins/debugger/breakpoint.cpp index f81a507987..a5bda190ef 100644 --- a/src/plugins/debugger/breakpoint.cpp +++ b/src/plugins/debugger/breakpoint.cpp @@ -276,6 +276,21 @@ void BreakpointParameters::updateLocation(const QByteArray &location) } } +bool BreakpointParameters::isCppBreakpoint() const +{ + // Qml specific breakpoint types. + if (type == BreakpointAtJavaScriptThrow + || type == BreakpointOnQmlSignalHandler) + return false; + + // Qml is currently only file. + if (type == BreakpointByFileAndLine) + return !fileName.endsWith(QLatin1String(".qml"), Qt::CaseInsensitive) + && !fileName.endsWith(QLatin1String(".js"), Qt::CaseInsensitive); + + return true; +} + QString BreakpointParameters::toString() const { QString result; |