Commit b68be9e3 authored by Tobias Hunger's avatar Tobias Hunger

Qbs: Use Qt5-style connects in QbsBuildConfigurationWidget

Change-Id: I12626597a87a965a4a0b657b5ca19470637f30ab
Reviewed-by: Jake Petroules's avatarJake Petroules <jake.petroules@qt.io>
parent 4fe46e49
......@@ -43,8 +43,10 @@ QbsBuildConfigurationWidget::QbsBuildConfigurationWidget(QbsProjectManager::Inte
m_buildConfiguration(bc),
m_ignoreChange(false)
{
connect(bc, SIGNAL(buildDirectoryChanged()), this, SLOT(buildDirectoryChanged()));
connect(bc, SIGNAL(environmentChanged()), this, SLOT(environmentHasChanged()));
connect(bc, &ProjectExplorer::BuildConfiguration::buildDirectoryChanged,
this, &QbsBuildConfigurationWidget::buildDirectoryChanged);
connect(bc, &ProjectExplorer::BuildConfiguration::environmentChanged,
this, &QbsBuildConfigurationWidget::environmentHasChanged);
QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setMargin(0);
......@@ -65,7 +67,8 @@ QbsBuildConfigurationWidget::QbsBuildConfigurationWidget(QbsProjectManager::Inte
m_buildDirChooser->setEnvironment(bc->environment());
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();
}
......
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