7#ifndef SET_PRIORITY_COMPARATOR_H
8#define SET_PRIORITY_COMPARATOR_H
22 if (a->getEnabled()) {
23 return !b->getEnabled() || a->getSortKey() < b->getSortKey();
25 return !b->getEnabled() && a->getSortKey() < b->getSortKey();
40 if (a->getEnabled()) {
41 return !b->getEnabled() || a->getReleaseDate() < b->getReleaseDate();
43 return !b->getEnabled() && a->getReleaseDate() < b->getReleaseDate();
58 if (a.
getSet()->getEnabled()) {
59 return !b.
getSet()->getEnabled() || a.
getSet()->getSortKey() < b.
getSet()->getSortKey();
61 return !b.
getSet()->getEnabled() && a.
getSet()->getSortKey() < b.
getSet()->getSortKey();
QSharedPointer< CardSet > CardSetPtr
Definition card_info.h:24
Definition card_set_comparator.h:49
bool operator()(const PrintingInfo &a, const PrintingInfo &b) const
Definition card_set_comparator.h:56
Represents metadata for a specific variation of a card within a set.
Definition printing_info.h:27
CardSetPtr getSet() const
Returns the set this printing belongs to.
Definition printing_info.h:67
Definition card_set_comparator.h:13
bool operator()(const CardSetPtr &a, const CardSetPtr &b) const
Definition card_set_comparator.h:20
Definition card_set_comparator.h:31
bool operator()(const CardSetPtr &a, const CardSetPtr &b) const
Definition card_set_comparator.h:38