From 56809c264f4cbd9849b98f0b0b5dc450ff311cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 12 Jun 2025 01:58:12 +0200 Subject: [PATCH] Fix overload for Qt5. --- cockatrice/src/dialogs/dlg_get_card_prices.cpp | 3 ++- cockatrice/src/dialogs/dlg_get_card_prices.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/dialogs/dlg_get_card_prices.cpp b/cockatrice/src/dialogs/dlg_get_card_prices.cpp index 0fbc0a41f..866d80bfb 100644 --- a/cockatrice/src/dialogs/dlg_get_card_prices.cpp +++ b/cockatrice/src/dialogs/dlg_get_card_prices.cpp @@ -53,7 +53,8 @@ DlgGetCardPrices::DlgGetCardPrices(QWidget *parent, DeckListModel *_model) : QDi currencyComboBox->addItem("Euro (€)", QVariant(QString("eur"))); currencyComboBox->addItem("US Dollar ($)", QVariant(QString("usd"))); currencyComboBox->setCurrentIndex(0); - connect(currencyComboBox, &QComboBox::currentIndexChanged, this, &DlgGetCardPrices::onCurrencyChanged); + connect(currencyComboBox, qOverload(&QComboBox::currentIndexChanged), this, + &DlgGetCardPrices::onCurrencyChanged); tableWidget = new QTableWidget(this); tableWidget->setColumnCount(7); diff --git a/cockatrice/src/dialogs/dlg_get_card_prices.h b/cockatrice/src/dialogs/dlg_get_card_prices.h index 34eaa6692..50a594628 100644 --- a/cockatrice/src/dialogs/dlg_get_card_prices.h +++ b/cockatrice/src/dialogs/dlg_get_card_prices.h @@ -4,7 +4,7 @@ #include "../client/ui/widgets/general/layout_containers/flow_widget.h" #include "../deck/deck_list_model.h" -#include // Include for the checkbox +#include #include #include #include