Skip to content
Snippets Groups Projects
Commit cf43cc43 authored by Aurindam Jana's avatar Aurindam Jana Committed by hjk
Browse files

QmlCppEngine: Return engine capabilities of current engine


Change-Id: If006ecaf09314c00822a70f790a69eb73edc2d28
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent d17911c3
No related branches found
No related tags found
No related merge requests found
...@@ -216,9 +216,14 @@ bool QmlCppEngine::hasCapability(unsigned cap) const ...@@ -216,9 +216,14 @@ bool QmlCppEngine::hasCapability(unsigned cap) const
// ### this could also be an OR of both engines' capabilities // ### this could also be an OR of both engines' capabilities
bool hasCap = d->m_cppEngine->hasCapability(cap); bool hasCap = d->m_cppEngine->hasCapability(cap);
if (d->m_activeEngine != d->m_cppEngine) { if (d->m_activeEngine != d->m_cppEngine) {
//Some capabilities cannot be handled by QML Engine
//Expand this list as and when required
if (cap == AddWatcherWhileRunningCapability) if (cap == AddWatcherWhileRunningCapability)
hasCap = hasCap || d->m_qmlEngine->hasCapability(cap); hasCap = hasCap || d->m_qmlEngine->hasCapability(cap);
if (cap == WatchWidgetsCapability) if (cap == WatchWidgetsCapability ||
cap == DisassemblerCapability ||
cap == OperateByInstructionCapability ||
cap == ReverseSteppingCapability)
hasCap = hasCap && d->m_qmlEngine->hasCapability(cap); hasCap = hasCap && d->m_qmlEngine->hasCapability(cap);
} }
return hasCap; return hasCap;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment