forked from qt-creator/qt-creator
debugger: move isCppBreakpoint to Breakpoint
Change-Id: I241401fa010166982e5a95a699c99fbaa87188ef Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user