forked from qt-creator/qt-creator
connect() to ambiguous signals/slots: Replace static_cast with QOverload
Change-Id: I473d7a2a16509cee944a2a21b022a3f6f02cfd8d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -68,10 +68,8 @@ Core::Id ClangDiagnosticConfigsSelectionWidget::currentConfigId() const
|
||||
void ClangDiagnosticConfigsSelectionWidget::connectToCurrentIndexChanged()
|
||||
{
|
||||
m_currentIndexChangedConnection
|
||||
= connect(m_selectionComboBox,
|
||||
static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
this,
|
||||
[this]() { emit currentConfigChanged(currentConfigId()); });
|
||||
= connect(m_selectionComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, [this]() { emit currentConfigChanged(currentConfigId()); });
|
||||
}
|
||||
|
||||
void ClangDiagnosticConfigsSelectionWidget::disconnectFromCurrentIndexChanged()
|
||||
|
||||
Reference in New Issue
Block a user