Qt6: if we want the QString argument we need the TextChanged slot

I'm surprised this worked correctly in Qt5.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-02-09 17:25:00 -08:00
parent 5d506e4152
commit fc66352c3c
2 changed files with 4 additions and 4 deletions

View file

@ -311,7 +311,7 @@ void DownloadFromDCWidget::updateState(states state)
currentState = state;
}
void DownloadFromDCWidget::on_vendor_currentIndexChanged(const QString &vendor)
void DownloadFromDCWidget::on_vendor_currentTextChanged(const QString &vendor)
{
unsigned int transport;
dc_descriptor_t *descriptor;
@ -323,7 +323,7 @@ void DownloadFromDCWidget::on_vendor_currentIndexChanged(const QString &vendor)
fill_device_list(transport);
}
void DownloadFromDCWidget::on_product_currentIndexChanged(const QString &)
void DownloadFromDCWidget::on_product_currentTextChanged(const QString &)
{
updateDeviceEnabled();
}

View file

@ -42,8 +42,8 @@ slots:
void on_ok_clicked();
void on_cancel_clicked();
void on_search_clicked();
void on_vendor_currentIndexChanged(const QString &vendor);
void on_product_currentIndexChanged(const QString &product);
void on_vendor_currentTextChanged(const QString &vendor);
void on_product_currentTextChanged(const QString &product);
void on_device_currentTextChanged(const QString &device);
void onDownloadThreadFinished();