Remove uses QOverload<const QString &>::of(&QComboBox::currentIndexChanged)

Gone in Qt 6.

Task-number: QTCREATORBUG-24098
Change-Id: I7ab2dcb9b7c71a3b0d07f05162ef2752e02dc881
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-06-19 10:14:47 +02:00
parent f9a5ad4d3c
commit 3ec4afff0e
9 changed files with 20 additions and 23 deletions

View File

@@ -228,8 +228,7 @@ NewDialog::NewDialog(QWidget *parent) :
connect(m_ui->buttonBox, &QDialogButtonBox::accepted, this, &NewDialog::accept);
connect(m_ui->buttonBox, &QDialogButtonBox::rejected, this, &NewDialog::reject);
connect(m_ui->comboBox,
QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
connect(m_ui->comboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &NewDialog::setSelectedPlatform);
}
@@ -519,7 +518,7 @@ void NewDialog::updateOkButton()
m_okButton->setEnabled(currentWizardFactory() != nullptr);
}
void NewDialog::setSelectedPlatform(const QString & /*platform*/)
void NewDialog::setSelectedPlatform(int /*platform*/)
{
//The static cast allows us to keep PlatformFilterProxyModel anonymous
static_cast<PlatformFilterProxyModel*>(m_filterProxyModel)->setPlatform(selectedPlatform());

View File

@@ -70,7 +70,7 @@ private:
void accept() override;
void reject() override;
void updateOkButton();
void setSelectedPlatform(const QString &platform);
void setSelectedPlatform(int index);
Core::IWizardFactory *currentWizardFactory() const;
void addItem(QStandardItem *topLevelCategoryItem, IWizardFactory *factory);