From fc66352c3c0caf77aec9c09e4eaea3a6093f25a2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Feb 2022 17:25:00 -0800 Subject: [PATCH] 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 --- desktop-widgets/downloadfromdivecomputer.cpp | 4 ++-- desktop-widgets/downloadfromdivecomputer.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp index c11260905..55ad07c3c 100644 --- a/desktop-widgets/downloadfromdivecomputer.cpp +++ b/desktop-widgets/downloadfromdivecomputer.cpp @@ -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(); } diff --git a/desktop-widgets/downloadfromdivecomputer.h b/desktop-widgets/downloadfromdivecomputer.h index 40f6b41e1..68763701c 100644 --- a/desktop-widgets/downloadfromdivecomputer.h +++ b/desktop-widgets/downloadfromdivecomputer.h @@ -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();