Commit 7607fae2 authored by Denis Shienkov's avatar Denis Shienkov

BareMetal: Use the Qt5 signal/slot connection syntax

Change-Id: Icb51db0fbd77bbaba913a16eb468b0edafa047bb
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: default avatarTim Sander <tim@krieglstein.org>
parent 6e2738af
......@@ -57,8 +57,8 @@ BareMetalDeviceConfigurationWizardSetupPage::BareMetalDeviceConfigurationWizardS
m_gdbServerProviderChooser->populate();
formLayout->addRow(tr("GDB server provider:"), m_gdbServerProviderChooser);
connect(m_nameLineEdit, SIGNAL(textChanged(QString)),
SIGNAL(completeChanged()));
connect(m_nameLineEdit, &QLineEdit::textChanged,
this, &BareMetalDeviceConfigurationWizardSetupPage::completeChanged);
connect(m_gdbServerProviderChooser, &GdbServerProviderChooser::providerChanged,
this, &QWizardPage::completeChanged);
}
......
......@@ -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)
......
......@@ -47,9 +47,12 @@ GdbServerProviderProcess::GdbServerProviderProcess(
: ProjectExplorer::DeviceProcess(device, parent)
, m_process(new QProcess(this))
{
connect(m_process, SIGNAL(error(QProcess::ProcessError)),
SIGNAL(error(QProcess::ProcessError)));
connect(m_process, SIGNAL(finished(int)), SIGNAL(finished()));
connect(m_process,
static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::error),
this, &GdbServerProviderProcess::error);
connect(m_process,
static_cast<void (QProcess::*)(int)>(&QProcess::finished),
this, &GdbServerProviderProcess::finished);
connect(m_process, &QProcess::readyReadStandardOutput,
this, &ProjectExplorer::DeviceProcess::readyReadStandardOutput);
......
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