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:
@@ -53,7 +53,7 @@ CreateSimulatorDialog::CreateSimulatorDialog(QWidget *parent) :
|
||||
m_ui->runtimeCombo->currentIndex() > 0);
|
||||
};
|
||||
|
||||
const auto indexChanged = static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged);
|
||||
const auto indexChanged = QOverload<int>::of(&QComboBox::currentIndexChanged);
|
||||
connect(m_ui->nameEdit, &QLineEdit::textChanged, enableOk);
|
||||
connect(m_ui->runtimeCombo, indexChanged, enableOk);
|
||||
connect(m_ui->deviceTypeCombo, indexChanged, [this, enableOk]() {
|
||||
|
||||
Reference in New Issue
Block a user