forked from qt-creator/qt-creator
ProjectExplorer: Use Qt5-style connects and clean up
Clean up code a bit: Remove private slots, etc. Change-Id: I745925c76ed4e0be69a11ca911741309fc4286e7 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -180,12 +180,10 @@ void Project::addTarget(Target *t)
|
||||
|
||||
// add it
|
||||
d->m_targets.push_back(t);
|
||||
connect(t, SIGNAL(environmentChanged()),
|
||||
SLOT(changeEnvironment()));
|
||||
connect(t, SIGNAL(buildConfigurationEnabledChanged()),
|
||||
this, SLOT(changeBuildConfigurationEnabled()));
|
||||
connect(t, SIGNAL(buildDirectoryChanged()),
|
||||
this, SLOT(onBuildDirectoryChanged()));
|
||||
connect(t, &Target::environmentChanged, this, &Project::changeEnvironment);
|
||||
connect(t, &Target::buildConfigurationEnabledChanged,
|
||||
this, &Project::changeBuildConfigurationEnabled);
|
||||
connect(t, &Target::buildDirectoryChanged, this, &Project::onBuildDirectoryChanged);
|
||||
emit addedTarget(t);
|
||||
|
||||
// check activeTarget:
|
||||
|
||||
Reference in New Issue
Block a user