forked from qt-creator/qt-creator
QtSupport: Add a QmlDebuggingAspect
... and make use of it in the qbs build configuration. We cannot use it for qmake yet, because the build config there still has a custom, non-aspectified widget. Change-Id: Iacf902a2d9384d0074b10fdc98e082fa906fb6d6 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -244,6 +244,9 @@ bool DebuggerRunConfigurationAspect::useQmlDebugger() const
|
||||
// (Using the Qt metatype system to avoid a hard qt4projectmanager dependency)
|
||||
//
|
||||
if (BuildConfiguration *bc = m_target->activeBuildConfiguration()) {
|
||||
QVariant linkProperty = bc->property("linkQmlDebuggingLibrary");
|
||||
if (linkProperty.isValid() && linkProperty.canConvert(QVariant::Bool))
|
||||
return linkProperty.toBool();
|
||||
if (BuildStepList *bsl = bc->stepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD)) {
|
||||
foreach (BuildStep *step, bsl->steps()) {
|
||||
QVariant linkProperty = step->property("linkQmlDebuggingLibrary");
|
||||
|
||||
Reference in New Issue
Block a user