forked from qt-creator/qt-creator
QmlCppEngine: Return engine capabilities of current engine
Change-Id: If006ecaf09314c00822a70f790a69eb73edc2d28 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user