summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/deployconfigurationmodel.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-01-29 16:38:37 +0200
committerOrgad Shaneh <orgads@gmail.com>2016-02-01 15:51:34 +0000
commit15f8bb07ed70502c320a0ffe167694bac9734a14 (patch)
tree74db1d0c400835fd539a7697453623650d7e36b2 /src/plugins/projectexplorer/deployconfigurationmodel.cpp
parentdb8b9f94631a0e1637af090d31a5832656ba9f2a (diff)
downloadqt-creator-15f8bb07ed70502c320a0ffe167694bac9734a14.tar.gz
ProjectExplorer: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I619db09a79760186b72e7662490ed1205155c1a7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/deployconfigurationmodel.cpp')
-rw-r--r--src/plugins/projectexplorer/deployconfigurationmodel.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/deployconfigurationmodel.cpp b/src/plugins/projectexplorer/deployconfigurationmodel.cpp
index 5bd0d551ba..1f14521f20 100644
--- a/src/plugins/projectexplorer/deployconfigurationmodel.cpp
+++ b/src/plugins/projectexplorer/deployconfigurationmodel.cpp
@@ -57,14 +57,14 @@ DeployConfigurationModel::DeployConfigurationModel(Target *target, QObject *pare
m_deployConfigurations = m_target->deployConfigurations();
Utils::sort(m_deployConfigurations, DeployConfigurationComparer());
- connect(target, SIGNAL(addedDeployConfiguration(ProjectExplorer::DeployConfiguration*)),
- this, SLOT(addedDeployConfiguration(ProjectExplorer::DeployConfiguration*)));
- connect(target, SIGNAL(removedDeployConfiguration(ProjectExplorer::DeployConfiguration*)),
- this, SLOT(removedDeployConfiguration(ProjectExplorer::DeployConfiguration*)));
+ connect(target, &Target::addedDeployConfiguration,
+ this, &DeployConfigurationModel::addedDeployConfiguration);
+ connect(target, &Target::removedDeployConfiguration,
+ this, &DeployConfigurationModel::removedDeployConfiguration);
foreach (DeployConfiguration *dc, m_deployConfigurations)
- connect(dc, SIGNAL(displayNameChanged()),
- this, SLOT(displayNameChanged()));
+ connect(dc, &ProjectConfiguration::displayNameChanged,
+ this, &DeployConfigurationModel::displayNameChanged);
}
int DeployConfigurationModel::rowCount(const QModelIndex &parent) const
@@ -168,8 +168,8 @@ void DeployConfigurationModel::addedDeployConfiguration(DeployConfiguration *dc)
m_deployConfigurations.insert(i, dc);
endInsertRows();
- connect(dc, SIGNAL(displayNameChanged()),
- this, SLOT(displayNameChanged()));
+ connect(dc, &ProjectConfiguration::displayNameChanged,
+ this, &DeployConfigurationModel::displayNameChanged);
}
void DeployConfigurationModel::removedDeployConfiguration(DeployConfiguration *dc)