bare-metal: Use QOverload in signal/slot connections more

Change-Id: I34a882a6af946323bbb1adea29d9c822ce917e41
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Denis Shienkov
2019-05-08 14:24:28 +03:00
committed by hjk
parent dfb0f391dd
commit 1b2701205c
3 changed files with 5 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ GdbServerProviderChooser::GdbServerProviderChooser(
layout->addWidget(m_manageButton);
setFocusProxy(m_manageButton);
connect(m_chooser, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
connect(m_chooser, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &GdbServerProviderChooser::currentIndexChanged);
connect(m_manageButton, &QAbstractButton::clicked,
this, &GdbServerProviderChooser::manageButtonClicked);

View File

@@ -298,7 +298,7 @@ OpenOcdGdbServerProviderConfigWidget::OpenOcdGdbServerProviderConfigWidget(
connect(m_resetCommandsTextEdit, &QPlainTextEdit::textChanged,
this, &GdbServerProviderConfigWidget::dirty);
connect(m_startupModeComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
connect(m_startupModeComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &OpenOcdGdbServerProviderConfigWidget::startupModeChanged);
}

View File

@@ -292,14 +292,14 @@ StLinkUtilGdbServerProviderConfigWidget::StLinkUtilGdbServerProviderConfigWidget
this, &GdbServerProviderConfigWidget::dirty);
connect(m_verboseLevelSpinBox,
static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
QOverload<int>::of(&QSpinBox::valueChanged),
this, &GdbServerProviderConfigWidget::dirty);
connect(m_extendedModeCheckBox, &QAbstractButton::clicked,
this, &GdbServerProviderConfigWidget::dirty);
connect(m_resetBoardCheckBox, &QAbstractButton::clicked,
this, &GdbServerProviderConfigWidget::dirty);
connect(m_transportLayerComboBox,
static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &GdbServerProviderConfigWidget::dirty);
connect(m_initCommandsTextEdit, &QPlainTextEdit::textChanged,
@@ -308,7 +308,7 @@ StLinkUtilGdbServerProviderConfigWidget::StLinkUtilGdbServerProviderConfigWidget
this, &GdbServerProviderConfigWidget::dirty);
connect(m_startupModeComboBox,
static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &StLinkUtilGdbServerProviderConfigWidget::startupModeChanged);
}