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:
@@ -541,7 +541,7 @@ BreakpointDialog::BreakpointDialog(unsigned int enabledParts, QWidget *parent)
|
||||
verticalLayout->addWidget(m_buttonBox);
|
||||
verticalLayout->setStretchFactor(groupBoxAdvanced, 10);
|
||||
|
||||
connect(m_comboBoxType, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated),
|
||||
connect(m_comboBoxType, QOverload<int>::of(&QComboBox::activated),
|
||||
this, &BreakpointDialog::typeChanged);
|
||||
connect(m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||
connect(m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
|
||||
Reference in New Issue
Block a user