I have no linter, yet I must lint.

Took 4 minutes
This commit is contained in:
Lukas Brübach 2025-09-05 02:31:44 +02:00
parent ad4888fcf1
commit 0aa0ee2672
5 changed files with 10 additions and 13 deletions

View file

@ -1,7 +1,7 @@
#include "tapped_out_interface.h" #include "tapped_out_interface.h"
#include "deck_list_card_node.h"
#include "deck_list.h" #include "deck_list.h"
#include "deck_list_card_node.h"
#include <QDesktopServices> #include <QDesktopServices>
#include <QMessageBox> #include <QMessageBox>

View file

@ -3,8 +3,8 @@
#include "../game/cards/exact_card.h" #include "../game/cards/exact_card.h"
#include "abstract_deck_list_card_node.h" #include "abstract_deck_list_card_node.h"
#include "deck_list_card_node.h"
#include "deck_list.h" #include "deck_list.h"
#include "deck_list_card_node.h"
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QList> #include <QList>
@ -19,9 +19,9 @@ class QTextCursor;
*/ */
enum DeckListModelGroupCriteria enum DeckListModelGroupCriteria
{ {
MAIN_TYPE, /**< Group cards by their main type (e.g., creature, instant). */ MAIN_TYPE, /**< Group cards by their main type (e.g., creature, instant). */
MANA_COST, /**< Group cards by their mana cost. */ MANA_COST, /**< Group cards by their mana cost. */
COLOR /**< Group cards by their color identity. */ COLOR /**< Group cards by their color identity. */
}; };
/** /**
@ -236,10 +236,10 @@ public:
void setActiveGroupCriteria(DeckListModelGroupCriteria newCriteria); void setActiveGroupCriteria(DeckListModelGroupCriteria newCriteria);
private: private:
DeckLoader *deckList; /**< Pointer to the deck loader providing the underlying data. */ DeckLoader *deckList; /**< Pointer to the deck loader providing the underlying data. */
InnerDecklistNode *root; /**< Root node of the model tree. */ InnerDecklistNode *root; /**< Root node of the model tree. */
DeckListModelGroupCriteria activeGroupCriteria = DeckListModelGroupCriteria::MAIN_TYPE; DeckListModelGroupCriteria activeGroupCriteria = DeckListModelGroupCriteria::MAIN_TYPE;
int lastKnownColumn; /**< Last column used for sorting. */ int lastKnownColumn; /**< Last column used for sorting. */
Qt::SortOrder lastKnownOrder; /**< Last known sort order. */ Qt::SortOrder lastKnownOrder; /**< Last known sort order. */
InnerDecklistNode *createNodeIfNeeded(const QString &name, InnerDecklistNode *parent); InnerDecklistNode *createNodeIfNeeded(const QString &name, InnerDecklistNode *parent);
@ -253,8 +253,7 @@ private:
void printDeckListNode(QTextCursor *cursor, InnerDecklistNode *node); void printDeckListNode(QTextCursor *cursor, InnerDecklistNode *node);
template <typename T> template <typename T> T getNode(const QModelIndex &index) const
T getNode(const QModelIndex &index) const
{ {
if (!index.isValid()) if (!index.isValid())
return dynamic_cast<T>(root); return dynamic_cast<T>(root);

View file

@ -3,8 +3,8 @@
#include "../game/cards/card_database.h" #include "../game/cards/card_database.h"
#include "../game/cards/card_database_manager.h" #include "../game/cards/card_database_manager.h"
#include "../main.h" #include "../main.h"
#include "deck_list_card_node.h"
#include "deck_list.h" #include "deck_list.h"
#include "deck_list_card_node.h"
#include <QApplication> #include <QApplication>
#include <QClipboard> #include <QClipboard>

View file

@ -3,8 +3,8 @@
#include "../../client/ui/theme_manager.h" #include "../../client/ui/theme_manager.h"
#include "../../game/cards/card_info.h" #include "../../game/cards/card_info.h"
#include "../../settings/cache_settings.h" #include "../../settings/cache_settings.h"
#include "deck_list_card_node.h"
#include "deck_list.h" #include "deck_list.h"
#include "deck_list_card_node.h"
#include <QApplication> #include <QApplication>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>

View file

@ -34,8 +34,6 @@ bool AbstractDecklistCardNode::compareName(AbstractDecklistNode *other) const
} }
} }
bool AbstractDecklistCardNode::readElement(QXmlStreamReader *xml) bool AbstractDecklistCardNode::readElement(QXmlStreamReader *xml)
{ {
while (!xml->atEnd()) { while (!xml->atEnd()) {