forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user