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:
@@ -326,7 +326,7 @@ StartApplicationDialog::StartApplicationDialog(QWidget *parent)
|
||||
this, &StartApplicationDialog::updateState);
|
||||
connect(d->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||
connect(d->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
connect(d->historyComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
connect(d->historyComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, &StartApplicationDialog::historyIndexChanged);
|
||||
|
||||
connect(d->channelOverrideEdit, &QLineEdit::textChanged,
|
||||
|
||||
Reference in New Issue
Block a user