forked from qt-creator/qt-creator
bare-metal: Use QOverload in signal/slot connections more
Change-Id: I34a882a6af946323bbb1adea29d9c822ce917e41 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user