summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/target.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2012-09-09 20:41:30 +0300
committerOrgad Shaneh <orgads@gmail.com>2012-09-11 17:08:52 +0200
commit4ef2fbd4ce8d34c21380de0df29caf05e5902255 (patch)
treedab4128a0ad472f0f5ed6b1e6b34c47f0f05f77a /src/plugins/projectexplorer/target.cpp
parent5aef98bb66a302a8d035f81a6dac4a04ab2eb334 (diff)
downloadqt-creator-4ef2fbd4ce8d34c21380de0df29caf05e5902255.tar.gz
Profile -> Kit variable renaming
Change-Id: I6cc06684134030bd527d9dcce21ad17938a56927 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/target.cpp')
-rw-r--r--src/plugins/projectexplorer/target.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/projectexplorer/target.cpp b/src/plugins/projectexplorer/target.cpp
index 7a6f9d720f..2554d4973e 100644
--- a/src/plugins/projectexplorer/target.cpp
+++ b/src/plugins/projectexplorer/target.cpp
@@ -119,21 +119,21 @@ QList<DeployConfigurationFactory *> TargetPrivate::deployFactories() const
return ExtensionSystem::PluginManager::getObjects<DeployConfigurationFactory>();
}
-Target::Target(Project *project, Kit *p) :
- ProjectConfiguration(project, p->id()),
+Target::Target(Project *project, Kit *k) :
+ ProjectConfiguration(project, k->id()),
d(new TargetPrivate)
{
connect(DeviceManager::instance(), SIGNAL(updated()), this, SLOT(updateDeviceState()));
- d->m_kit = p;
+ d->m_kit = k;
setDisplayName(d->m_kit->displayName());
setIcon(d->m_kit->icon());
- KitManager *pm = KitManager::instance();
- connect(pm, SIGNAL(kitUpdated(ProjectExplorer::Kit*)),
+ KitManager *km = KitManager::instance();
+ connect(km, SIGNAL(kitUpdated(ProjectExplorer::Kit*)),
this, SLOT(handleKitUpdates(ProjectExplorer::Kit*)));
- connect(pm, SIGNAL(kitRemoved(ProjectExplorer::Kit*)),
+ connect(km, SIGNAL(kitRemoved(ProjectExplorer::Kit*)),
this, SLOT(handleKitRemoval(ProjectExplorer::Kit*)));
}
@@ -180,20 +180,20 @@ void Target::onBuildDirectoryChanged()
emit buildDirectoryChanged();
}
-void Target::handleKitUpdates(Kit *p)
+void Target::handleKitUpdates(Kit *k)
{
- if (p != d->m_kit)
+ if (k != d->m_kit)
return;
- setDisplayName(p->displayName());
- setIcon(p->icon());
+ setDisplayName(k->displayName());
+ setIcon(k->icon());
updateDefaultDeployConfigurations();
emit kitChanged();
}
-void Target::handleKitRemoval(Kit *p)
+void Target::handleKitRemoval(Kit *k)
{
- if (p != d->m_kit)
+ if (k != d->m_kit)
return;
d->m_kit = 0;
project()->removeTarget(this);