Commit d80b608d authored by Tobias Nätterlund's avatar Tobias Nätterlund Committed by Daniel Teske
Browse files

RemoteLinux/QNX: Fixed signal-slot connection



Change-Id: I6f060880db7b9360b3d9c548f42cee46468eb4ab
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 97239983
......@@ -48,7 +48,7 @@ BlackBerryDeployInformation::BlackBerryDeployInformation(Qt4ProjectManager::Qt4P
: QAbstractTableModel(project)
, m_project(project)
{
connect(m_project, SIGNAL(buildSystemEvaluated()), this, SLOT(initModel()));
connect(m_project, SIGNAL(proFilesEvaluated()), this, SLOT(initModel()));
}
int BlackBerryDeployInformation::rowCount(const QModelIndex &parent) const
......@@ -175,7 +175,7 @@ void BlackBerryDeployInformation::initModel()
if (!rootNode || rootNode->parseInProgress()) // Can be null right after project creation by wizard.
return;
disconnect(m_project, SIGNAL(buildSystemEvaluated()), this, SLOT(initModel()));
disconnect(m_project, SIGNAL(proFilesEvaluated()), this, SLOT(initModel()));
beginResetModel();
m_deployInformation.clear();
......@@ -193,5 +193,5 @@ void BlackBerryDeployInformation::initModel()
}
endResetModel();
connect(m_project, SIGNAL(buildSystemEvaluated()), SLOT(initModel()));
connect(m_project, SIGNAL(proFilesEvaluated()), SLOT(initModel()));
}
......@@ -61,7 +61,7 @@ using namespace Internal;
DeploymentInfo::DeploymentInfo(Qt4ProjectManager::Qt4Project *project, const QString &installPrefix)
: QAbstractListModel(project), d(new DeploymentInfoPrivate(project))
{
connect(project, SIGNAL(buildSystemEvaluated()), SLOT(createModels()));
connect(project, SIGNAL(proFilesEvaluated()), SLOT(createModels()));
setInstallPrefix(installPrefix);
}
......@@ -89,13 +89,13 @@ void DeploymentInfo::createModels()
const Qt4ProFileNode *const rootNode = d->project->rootQt4ProjectNode();
if (!rootNode || rootNode->parseInProgress()) // Can be null right after project creation by wizard.
return;
disconnect(d->project, SIGNAL(buildSystemEvaluated()), this, SLOT(createModels()));
disconnect(d->project, SIGNAL(proFilesEvaluated()), this, SLOT(createModels()));
beginResetModel();
qDeleteAll(d->listModels);
d->listModels.clear();
createModels(rootNode);
endResetModel();
connect (d->project, SIGNAL(buildSystemEvaluated()), SLOT(createModels()));
connect (d->project, SIGNAL(proFilesEvaluated()), SLOT(createModels()));
}
void DeploymentInfo::createModels(const Qt4ProFileNode *proFileNode)
......
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