BareMetal: Use the Qt5 signal/slot connection syntax

Change-Id: Icb51db0fbd77bbaba913a16eb468b0edafa047bb
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Tim Sander <tim@krieglstein.org>
This commit is contained in:
Denis Shienkov
2015-11-29 18:58:42 +03:00
parent 6e2738af0e
commit 7607fae2bf
3 changed files with 17 additions and 9 deletions

View File

@@ -244,8 +244,11 @@ GdbServerProviderConfigWidget::GdbServerProviderConfigWidget(
populateStartupModes();
setFromProvider();
connect(m_nameLineEdit, SIGNAL(textChanged(QString)), SIGNAL(dirty()));
connect(m_startupModeComboBox, SIGNAL(currentIndexChanged(int)), SIGNAL(dirty()));
connect(m_nameLineEdit, &QLineEdit::textChanged,
this, &GdbServerProviderConfigWidget::dirty);
connect(m_startupModeComboBox,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
this, &GdbServerProviderConfigWidget::dirty);
}
void GdbServerProviderConfigWidget::apply()
@@ -375,8 +378,10 @@ HostWidget::HostWidget(QWidget *parent)
layout->addWidget(m_hostLineEdit);
layout->addWidget(m_portSpinBox);
connect(m_hostLineEdit, SIGNAL(textChanged(QString)), SIGNAL(dataChanged()));
connect(m_portSpinBox, SIGNAL(valueChanged(int)), SIGNAL(dataChanged()));
connect(m_hostLineEdit, &QLineEdit::textChanged,
this, &HostWidget::dataChanged);
connect(m_portSpinBox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
this, &HostWidget::dataChanged);
}
void HostWidget::setHost(const QString &host)