aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/customtoolchain.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-01-29 16:38:37 +0200
committerOrgad Shaneh <orgads@gmail.com>2016-02-01 15:51:34 +0000
commit15f8bb07ed70502c320a0ffe167694bac9734a14 (patch)
tree74db1d0c400835fd539a7697453623650d7e36b2 /src/plugins/projectexplorer/customtoolchain.cpp
parentdb8b9f94631a0e1637af090d31a5832656ba9f2a (diff)
ProjectExplorer: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I619db09a79760186b72e7662490ed1205155c1a7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/customtoolchain.cpp')
-rw-r--r--src/plugins/projectexplorer/customtoolchain.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp
index fd88e3a6ac..261599df52 100644
--- a/src/plugins/projectexplorer/customtoolchain.cpp
+++ b/src/plugins/projectexplorer/customtoolchain.cpp
@@ -528,17 +528,19 @@ CustomToolChainConfigWidget::CustomToolChainConfigWidget(CustomToolChain *tc) :
m_predefinedDetails->updateSummaryText();
m_headerDetails->updateSummaryText();
- connect(m_compilerCommand, SIGNAL(rawPathChanged(QString)), this, SIGNAL(dirty()));
- connect(m_makeCommand, SIGNAL(rawPathChanged(QString)), this, SIGNAL(dirty()));
- connect(m_abiWidget, SIGNAL(abiChanged()), this, SIGNAL(dirty()));
- connect(m_predefinedMacros, SIGNAL(textChanged()), this, SLOT(updateSummaries()));
- connect(m_headerPaths, SIGNAL(textChanged()), this, SLOT(updateSummaries()));
- connect(m_cxx11Flags, SIGNAL(textChanged(QString)), this, SIGNAL(dirty()));
- connect(m_mkspecs, SIGNAL(textChanged(QString)), this, SIGNAL(dirty()));
- connect(m_errorParserComboBox, SIGNAL(currentIndexChanged(int)),
- this, SLOT(errorParserChanged(int)));
- connect(m_customParserSettingsButton, SIGNAL(clicked()),
- this, SLOT(openCustomParserSettingsDialog()));
+ connect(m_compilerCommand, &PathChooser::rawPathChanged, this, &ToolChainConfigWidget::dirty);
+ connect(m_makeCommand, &PathChooser::rawPathChanged, this, &ToolChainConfigWidget::dirty);
+ connect(m_abiWidget, &AbiWidget::abiChanged, this, &ToolChainConfigWidget::dirty);
+ connect(m_predefinedMacros, &QPlainTextEdit::textChanged,
+ this, &CustomToolChainConfigWidget::updateSummaries);
+ connect(m_headerPaths, &QPlainTextEdit::textChanged,
+ this, &CustomToolChainConfigWidget::updateSummaries);
+ connect(m_cxx11Flags, &QLineEdit::textChanged, this, &ToolChainConfigWidget::dirty);
+ connect(m_mkspecs, &QLineEdit::textChanged, this, &ToolChainConfigWidget::dirty);
+ connect(m_errorParserComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
+ this, &CustomToolChainConfigWidget::errorParserChanged);
+ connect(m_customParserSettingsButton, &QAbstractButton::clicked,
+ this, &CustomToolChainConfigWidget::openCustomParserSettingsDialog);
errorParserChanged(m_errorParserComboBox->currentIndex());
}