From ab50a51fa14d1dd4413848c91508d2ed93901e4a Mon Sep 17 00:00:00 2001 From: ZeldaZach Date: Wed, 25 Dec 2024 22:47:32 -0500 Subject: [PATCH] Move to sorting widget --- .../client/ui/widgets/printing_selector/printing_selector.cpp | 2 +- .../printing_selector/printing_selector_card_sorting_widget.cpp | 2 +- .../printing_selector/printing_selector_card_sorting_widget.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp index 6e55f3163..33f76ada7 100644 --- a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp +++ b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp @@ -171,7 +171,7 @@ void PrintingSelector::getAllSetsForCurrentCard() } else { setsToUse = filteredSets; } - setsToUse = sortToolBar->prependSelectedPrintings(setsToUse, selectedCard->getName()); + setsToUse = sortToolBar->prependPinnedPrintings(setsToUse, selectedCard->getName()); // Defer widget creation currentIndex = 0; diff --git a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector_card_sorting_widget.cpp b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector_card_sorting_widget.cpp index 179cafb89..b44279712 100644 --- a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector_card_sorting_widget.cpp +++ b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector_card_sorting_widget.cpp @@ -148,7 +148,7 @@ QList PrintingSelectorCardSortingWidget::filterSets(const QList< return filteredSets; } -QList PrintingSelectorCardSortingWidget::prependSelectedPrintings(const QList &sets, +QList PrintingSelectorCardSortingWidget::prependPinnedPrintings(const QList &sets, const QString &cardName) { auto setsToUse = sets; diff --git a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector_card_sorting_widget.h b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector_card_sorting_widget.h index dd03689bd..b82d3eb2a 100644 --- a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector_card_sorting_widget.h +++ b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector_card_sorting_widget.h @@ -14,7 +14,7 @@ public: explicit PrintingSelectorCardSortingWidget(PrintingSelector *parent); QList sortSets(const CardInfoPerSetMap &cardInfoPerSets); QList filterSets(const QList &sets, const QString &searchText); - QList prependSelectedPrintings(const QList &sets, const QString &cardName); + QList prependPinnedPrintings(const QList &sets, const QString &cardName); QList prependPrintingsInDeck(const QList &sets, const CardInfoPtr &selectedCard, DeckListModel *deckModel);