forked from qt-creator/qt-creator
DebuggerAspect: Simplify handling of Qml debugging
There should not be a need to have the linkQmlDebuggingLibrary Q_PROPERTY anymore. The property is added for the benefit of the DebuggerAspect, which can just check relevant BuildConfigurationAspect directly. Change-Id: Ic47ca9e26911e096564fe77bd14bebe959b4f116 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -311,11 +311,6 @@ QString QbsBuildConfiguration::equivalentCommandLine(const QbsBuildStepData &ste
|
||||
return commandLine.arguments();
|
||||
}
|
||||
|
||||
bool QbsBuildConfiguration::isQmlDebuggingEnabled() const
|
||||
{
|
||||
return qmlDebuggingSetting() == TriState::Enabled;
|
||||
}
|
||||
|
||||
TriState QbsBuildConfiguration::qmlDebuggingSetting() const
|
||||
{
|
||||
return aspect<QtSupport::QmlDebuggingAspect>()->setting();
|
||||
|
||||
@@ -61,11 +61,6 @@ class QbsBuildConfiguration final : public ProjectExplorer::BuildConfiguration
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
// used in DebuggerRunConfigurationAspect
|
||||
Q_PROPERTY(bool linkQmlDebuggingLibrary
|
||||
READ isQmlDebuggingEnabled
|
||||
NOTIFY qbsConfigurationChanged)
|
||||
|
||||
friend class ProjectExplorer::BuildConfigurationFactory;
|
||||
QbsBuildConfiguration(ProjectExplorer::Target *target, Core::Id id);
|
||||
~QbsBuildConfiguration() final;
|
||||
@@ -90,7 +85,6 @@ public:
|
||||
QString configurationName() const;
|
||||
QString equivalentCommandLine(const QbsBuildStepData &stepData) const;
|
||||
|
||||
bool isQmlDebuggingEnabled() const;
|
||||
ProjectExplorer::TriState qmlDebuggingSetting() const;
|
||||
ProjectExplorer::TriState qtQuickCompilerSetting() const;
|
||||
ProjectExplorer::TriState separateDebugInfoSetting() const;
|
||||
|
||||
Reference in New Issue
Block a user