forked from qt-creator/qt-creator
Maemo: Correctly deploy subdirs projects.
Task-number: QTCREATORBUG-1614, QTCREATORBUG-1810 Reviewed-by: kh1
This commit is contained in:
@@ -69,12 +69,13 @@ MaemoPackageCreationWidget::MaemoPackageCreationWidget(MaemoPackageCreationStep
|
||||
m_ui->major->setValue(list.value(0, QLatin1String("0")).toInt());
|
||||
m_ui->minor->setValue(list.value(1, QLatin1String("0")).toInt());
|
||||
m_ui->patch->setValue(list.value(2, QLatin1String("0")).toInt());
|
||||
versionInfoChanged(); // workaround for missing minor and patch update notifications
|
||||
for (int i = 0; i < step->deployables()->modelCount(); ++i) {
|
||||
MaemoDeployableListModel * const model
|
||||
= step->deployables()->modelAt(i);
|
||||
m_ui->tabWidget->addTab(new MaemoDeployableListWidget(this, model),
|
||||
model->projectName());
|
||||
versionInfoChanged();
|
||||
|
||||
if (step->deployables()->modelCount() > 0) {
|
||||
handleModelsCreated();
|
||||
} else {
|
||||
connect(m_step->deployables(), SIGNAL(modelsCreated()), this,
|
||||
SLOT(handleModelsCreated()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,5 +105,15 @@ void MaemoPackageCreationWidget::versionInfoChanged()
|
||||
emit updateSummary();
|
||||
}
|
||||
|
||||
void MaemoPackageCreationWidget::handleModelsCreated()
|
||||
{
|
||||
for (int i = 0; i < m_step->deployables()->modelCount(); ++i) {
|
||||
MaemoDeployableListModel * const model
|
||||
= m_step->deployables()->modelAt(i);
|
||||
m_ui->tabWidget->addTab(new MaemoDeployableListWidget(this, model),
|
||||
model->projectName());
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Qt4ProjectManager
|
||||
|
||||
Reference in New Issue
Block a user