Maemo: Add watcher for project files.

Reviewed-by: kh1
This commit is contained in:
ck
2010-07-08 12:17:54 +02:00
parent 70e801bb09
commit 9d7fc860bf
4 changed files with 17 additions and 9 deletions

View File

@@ -71,12 +71,9 @@ MaemoPackageCreationWidget::MaemoPackageCreationWidget(MaemoPackageCreationStep
m_ui->patch->setValue(list.value(2, QLatin1String("0")).toInt());
versionInfoChanged();
if (step->deployables()->modelCount() > 0) {
handleModelsCreated();
} else {
connect(m_step->deployables(), SIGNAL(modelsCreated()), this,
SLOT(handleModelsCreated()));
}
connect(m_step->deployables(), SIGNAL(modelsCreated()), this,
SLOT(handleModelsCreated()));
handleModelsCreated();
}
void MaemoPackageCreationWidget::init()
@@ -107,6 +104,7 @@ void MaemoPackageCreationWidget::versionInfoChanged()
void MaemoPackageCreationWidget::handleModelsCreated()
{
m_ui->tabWidget->clear();
for (int i = 0; i < m_step->deployables()->modelCount(); ++i) {
MaemoDeployableListModel * const model
= m_step->deployables()->modelAt(i);