diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index 3a3869024c385531344a8a531bcefbcdd539b108..daf1e0950e48f914dac941c3961f1410455808e5 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -212,12 +212,18 @@ DebuggerRunConfigWidget::DebuggerRunConfigWidget(RunConfiguration *runConfigurat connect(m_debugServerPort, SIGNAL(valueChanged(int)), SLOT(qmlDebugServerPortChanged(int))); + if (m_aspect->isDisplaySuppressed()) + hide(); + if (m_aspect->areQmlDebuggingOptionsSuppressed()) { m_debugServerPortLabel->hide(); m_debugServerPort->hide(); m_useQmlDebugger->hide(); } + if (m_aspect->areCppDebuggingOptionsSuppressed()) + m_useCppDebugger->hide(); + if (m_aspect->isQmlDebuggingSpinboxSuppressed()) { m_debugServerPort->hide(); m_debugServerPortLabel->hide(); diff --git a/src/plugins/projectexplorer/runconfiguration.cpp b/src/plugins/projectexplorer/runconfiguration.cpp index 5ccd94de6362da7255bdd2f88c5347b1ffbf1a77..765b22b0e155b4ee4397696a5b6d5ef507e61859 100644 --- a/src/plugins/projectexplorer/runconfiguration.cpp +++ b/src/plugins/projectexplorer/runconfiguration.cpp @@ -203,7 +203,9 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(RunConfiguration m_useCppDebugger(true), m_useQmlDebugger(AutoEnableQmlDebugger), m_qmlDebugServerPort(Constants::QML_DEFAULT_DEBUG_SERVER_PORT), + m_suppressDisplay(false), m_suppressQmlDebuggingOptions(false), + m_suppressCppDebuggingOptions(false), m_suppressQmlDebuggingSpinbox(false) {} @@ -212,7 +214,9 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(DebuggerRunConfig m_useCppDebugger(other->m_useCppDebugger), m_useQmlDebugger(other->m_useQmlDebugger), m_qmlDebugServerPort(other->m_qmlDebugServerPort), + m_suppressDisplay(other->m_suppressDisplay), m_suppressQmlDebuggingOptions(other->m_suppressQmlDebuggingOptions), + m_suppressCppDebuggingOptions(other->m_suppressCppDebuggingOptions), m_suppressQmlDebuggingSpinbox(other->m_suppressQmlDebuggingSpinbox) {} @@ -262,21 +266,41 @@ void DebuggerRunConfigurationAspect::setQmllDebugServerPort(uint port) m_qmlDebugServerPort = port; } +void DebuggerRunConfigurationAspect::suppressDisplay() +{ + m_suppressDisplay = true; +} + void DebuggerRunConfigurationAspect::suppressQmlDebuggingOptions() { m_suppressQmlDebuggingOptions = true; } +void DebuggerRunConfigurationAspect::suppressCppDebuggingOptions() +{ + m_suppressCppDebuggingOptions = true; +} + void DebuggerRunConfigurationAspect::suppressQmlDebuggingSpinbox() { m_suppressQmlDebuggingSpinbox = true; } +bool DebuggerRunConfigurationAspect::isDisplaySuppressed() const +{ + return m_suppressDisplay; +} + bool DebuggerRunConfigurationAspect::areQmlDebuggingOptionsSuppressed() const { return m_suppressQmlDebuggingOptions; } +bool DebuggerRunConfigurationAspect::areCppDebuggingOptionsSuppressed() const +{ + return m_suppressCppDebuggingOptions; +} + bool DebuggerRunConfigurationAspect::isQmlDebuggingSpinboxSuppressed() const { return m_suppressQmlDebuggingSpinbox; diff --git a/src/plugins/projectexplorer/runconfiguration.h b/src/plugins/projectexplorer/runconfiguration.h index facc68394792ac34ee0eb9a3a684ae62e4bf795f..aa6981f0d8ba1115ad64fcf01f666f61d796054b 100644 --- a/src/plugins/projectexplorer/runconfiguration.h +++ b/src/plugins/projectexplorer/runconfiguration.h @@ -112,9 +112,13 @@ public: bool useQmlDebugger() const; uint qmlDebugServerPort() const; void setQmllDebugServerPort(uint port); + void suppressDisplay(); void suppressQmlDebuggingOptions(); + void suppressCppDebuggingOptions(); void suppressQmlDebuggingSpinbox(); + bool isDisplaySuppressed() const; bool areQmlDebuggingOptionsSuppressed() const; + bool areCppDebuggingOptionsSuppressed() const; bool isQmlDebuggingSpinboxSuppressed() const; RunConfiguration *runConfiguration(); @@ -126,7 +130,9 @@ public: bool m_useCppDebugger; QmlDebuggerStatus m_useQmlDebugger; uint m_qmlDebugServerPort; + bool m_suppressDisplay; bool m_suppressQmlDebuggingOptions; + bool m_suppressCppDebuggingOptions; bool m_suppressQmlDebuggingSpinbox; };