Commit fbeeac56 authored by hjk's avatar hjk Committed by hjk

runconfiguration: interface cleanup

Change-Id: I8a6fe6598d3d167a20c17e7f695fb6eff3fa0874
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent 742019e3
......@@ -205,13 +205,13 @@ void DebuggerMainWindowPrivate::updateUiForTarget(Target *target)
void DebuggerMainWindowPrivate::updateUiForRunConfiguration(RunConfiguration *rc)
{
if (m_previousRunConfiguration)
disconnect(m_previousRunConfiguration, SIGNAL(debuggersChanged()),
disconnect(m_previousRunConfiguration->debuggerAspect(), SIGNAL(debuggersChanged()),
this, SLOT(updateUiForCurrentRunConfiguration()));
m_previousRunConfiguration = rc;
updateUiForCurrentRunConfiguration();
if (!rc)
return;
connect(m_previousRunConfiguration,
connect(m_previousRunConfiguration->debuggerAspect(),
SIGNAL(debuggersChanged()),
SLOT(updateUiForCurrentRunConfiguration()));
}
......
......@@ -85,7 +85,8 @@ MaemoRunConfigurationWidget::MaemoRunConfigurationWidget(
addMountWidgets(subLayout);
connect(m_runConfiguration, SIGNAL(deviceConfigurationChanged(ProjectExplorer::Target*)),
this, SLOT(updateMountWarning()));
connect(m_runConfiguration, SIGNAL(debuggersChanged()), SLOT(updateMountWarning()));
connect(m_runConfiguration->debuggerAspect(), SIGNAL(debuggersChanged()),
SLOT(updateMountWarning()));
updateMountWarning();
const AbstractQt4MaemoTarget * const maemoTarget
......
......@@ -2198,14 +2198,14 @@ void ProjectExplorerPlugin::activeRunConfigurationChanged()
if (previousRunConfiguration) {
disconnect(previousRunConfiguration, SIGNAL(isEnabledChanged(bool)),
this, SIGNAL(updateRunActions()));
disconnect(previousRunConfiguration, SIGNAL(debuggersChanged()),
disconnect(previousRunConfiguration->debuggerAspect(), SIGNAL(debuggersChanged()),
this, SIGNAL(updateRunActions()));
}
previousRunConfiguration = rc;
if (rc) {
connect(rc, SIGNAL(isEnabledChanged(bool)),
this, SIGNAL(updateRunActions()));
connect(rc, SIGNAL(debuggersChanged()),
connect(rc->debuggerAspect(), SIGNAL(debuggersChanged()),
this, SIGNAL(updateRunActions()));
}
emit updateRunActions();
......
......@@ -253,12 +253,6 @@ uint DebuggerProjectSettings::qmlDebugServerPort() const
return m_qmlDebugServerPort;
}
void DebuggerProjectSettings::setQmlDebugServerPort(uint port)
{
m_qmlDebugServerPort = port;
emit qmlDebugServerPortChanged(port);
}
void DebuggerProjectSettings::suppressQmlDebuggingOptions()
{
m_suppressQmlDebuggingOptions = true;
......
......@@ -112,13 +112,11 @@ public:
bool useCppDebugger() const;
QmlDebuggerStatus useQmlDebugger() const;
uint qmlDebugServerPort() const;
void setQmlDebugServerPort(uint port);
void suppressQmlDebuggingOptions();
bool areQmlDebuggingOptionsSuppressed() const;
signals:
void debuggersChanged();
void qmlDebugServerPortChanged(uint port);
public:
bool m_useCppDebugger;
......@@ -168,8 +166,6 @@ public:
signals:
void isEnabledChanged(bool value);
void debuggersChanged();
void qmlDebugServerPortChanged(uint port);
protected:
RunConfiguration(Target *parent, const QString &id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment