Qbs: Use Qt5-style connects in QbsBuildConfigurationWidget

Change-Id: I12626597a87a965a4a0b657b5ca19470637f30ab
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
Tobias Hunger
2016-05-24 16:11:13 +02:00
parent 4fe46e492f
commit b68be9e3d3

View File

@@ -43,8 +43,10 @@ QbsBuildConfigurationWidget::QbsBuildConfigurationWidget(QbsProjectManager::Inte
m_buildConfiguration(bc), m_buildConfiguration(bc),
m_ignoreChange(false) m_ignoreChange(false)
{ {
connect(bc, SIGNAL(buildDirectoryChanged()), this, SLOT(buildDirectoryChanged())); connect(bc, &ProjectExplorer::BuildConfiguration::buildDirectoryChanged,
connect(bc, SIGNAL(environmentChanged()), this, SLOT(environmentHasChanged())); this, &QbsBuildConfigurationWidget::buildDirectoryChanged);
connect(bc, &ProjectExplorer::BuildConfiguration::environmentChanged,
this, &QbsBuildConfigurationWidget::environmentHasChanged);
QVBoxLayout *vbox = new QVBoxLayout(this); QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setMargin(0); vbox->setMargin(0);
@@ -65,7 +67,8 @@ QbsBuildConfigurationWidget::QbsBuildConfigurationWidget(QbsProjectManager::Inte
m_buildDirChooser->setEnvironment(bc->environment()); m_buildDirChooser->setEnvironment(bc->environment());
layout->addWidget(m_buildDirChooser, 0, 1); layout->addWidget(m_buildDirChooser, 0, 1);
connect(m_buildDirChooser, SIGNAL(rawPathChanged(QString)), this, SLOT(buildDirEdited())); connect(m_buildDirChooser, &Utils::PathChooser::rawPathChanged,
this, &QbsBuildConfigurationWidget::buildDirEdited);
buildDirectoryChanged(); buildDirectoryChanged();
} }