forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user