forked from qt-creator/qt-creator
ProjectExplorer: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I619db09a79760186b72e7662490ed1205155c1a7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
db8b9f9463
commit
15f8bb07ed
@@ -73,8 +73,8 @@ EnvironmentAspectWidget::EnvironmentAspectWidget(EnvironmentAspect *aspect, QWid
|
||||
if (m_baseEnvironmentComboBox->count() == 1)
|
||||
m_baseEnvironmentComboBox->setEnabled(false);
|
||||
|
||||
connect(m_baseEnvironmentComboBox, SIGNAL(currentIndexChanged(int)),
|
||||
this, SLOT(baseEnvironmentSelected(int)));
|
||||
connect(m_baseEnvironmentComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
this, &EnvironmentAspectWidget::baseEnvironmentSelected);
|
||||
|
||||
baseLayout->addWidget(m_baseEnvironmentComboBox);
|
||||
baseLayout->addStretch(10);
|
||||
@@ -88,14 +88,15 @@ EnvironmentAspectWidget::EnvironmentAspectWidget(EnvironmentAspect *aspect, QWid
|
||||
m_environmentWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
topLayout->addWidget(m_environmentWidget);
|
||||
|
||||
connect(m_environmentWidget, SIGNAL(userChangesChanged()),
|
||||
this, SLOT(userChangesEdited()));
|
||||
connect(m_environmentWidget, &EnvironmentWidget::userChangesChanged,
|
||||
this, &EnvironmentAspectWidget::userChangesEdited);
|
||||
|
||||
connect(m_aspect, SIGNAL(baseEnvironmentChanged()), this, SLOT(changeBaseEnvironment()));
|
||||
connect(m_aspect, SIGNAL(userEnvironmentChangesChanged(QList<Utils::EnvironmentItem>)),
|
||||
this, SLOT(changeUserChanges(QList<Utils::EnvironmentItem>)));
|
||||
connect(m_aspect, SIGNAL(environmentChanged()),
|
||||
this, SLOT(environmentChanged()));
|
||||
connect(m_aspect, &EnvironmentAspect::baseEnvironmentChanged,
|
||||
this, &EnvironmentAspectWidget::changeBaseEnvironment);
|
||||
connect(m_aspect, &EnvironmentAspect::userEnvironmentChangesChanged,
|
||||
this, &EnvironmentAspectWidget::changeUserChanges);
|
||||
connect(m_aspect, &EnvironmentAspect::environmentChanged,
|
||||
this, &EnvironmentAspectWidget::environmentChanged);
|
||||
}
|
||||
|
||||
QString EnvironmentAspectWidget::displayName() const
|
||||
|
||||
Reference in New Issue
Block a user