debugger: move isCppBreakpoint to Breakpoint

Change-Id: I241401fa010166982e5a95a699c99fbaa87188ef
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-01-24 16:41:30 +01:00
committed by hjk
parent 983a6ef506
commit 7201923562
7 changed files with 19 additions and 19 deletions

View File

@@ -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;