forked from qt-creator/qt-creator
Maemo: Device configurations now have a list of free ports.
The device configuration widget is now the only place the user ever has to specify ports.
This commit is contained in:
@@ -33,20 +33,13 @@ MaemoDeployStepWidget::~MaemoDeployStepWidget()
|
||||
|
||||
void MaemoDeployStepWidget::init()
|
||||
{
|
||||
#ifdef DEPLOY_VIA_MOUNT
|
||||
ui->mountPortSpinBox->setValue(m_step->mountPort());
|
||||
connect(ui->mountPortSpinBox, SIGNAL(valueChanged(int)), this,
|
||||
SLOT(handleMountPortEdited(int)));
|
||||
#else
|
||||
ui->mountPortLabel->hide();
|
||||
ui->mountPortSpinBox->hide();
|
||||
#endif
|
||||
handleDeviceConfigModelChanged();
|
||||
connect(m_step->buildConfiguration()->target(),
|
||||
SIGNAL(activeRunConfigurationChanged(ProjectExplorer::RunConfiguration*)),
|
||||
this, SLOT(handleDeviceConfigModelChanged()));
|
||||
connect(ui->deviceConfigComboBox, SIGNAL(activated(int)), this,
|
||||
SLOT(setCurrentDeviceConfig(int)));
|
||||
handleDeviceConfigModelChanged();
|
||||
}
|
||||
|
||||
void MaemoDeployStepWidget::handleDeviceConfigModelChanged()
|
||||
@@ -98,14 +91,5 @@ void MaemoDeployStepWidget::setCurrentDeviceConfig(int index)
|
||||
m_step->deviceConfigModel()->setCurrentIndex(index);
|
||||
}
|
||||
|
||||
void MaemoDeployStepWidget::handleMountPortEdited(int newPort)
|
||||
{
|
||||
#ifdef DEPLOY_VIA_MOUNT
|
||||
m_step->setMountPort(newPort);
|
||||
#else
|
||||
Q_UNUSED(newPort);
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Qt4ProjectManager
|
||||
|
||||
Reference in New Issue
Block a user