mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
I have no linter, yet I must lint.
Took 4 minutes
This commit is contained in:
parent
ad4888fcf1
commit
0aa0ee2672
5 changed files with 10 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "tapped_out_interface.h"
|
||||
|
||||
#include "deck_list_card_node.h"
|
||||
#include "deck_list.h"
|
||||
#include "deck_list_card_node.h"
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QMessageBox>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
#include "../game/cards/exact_card.h"
|
||||
#include "abstract_deck_list_card_node.h"
|
||||
#include "deck_list_card_node.h"
|
||||
#include "deck_list.h"
|
||||
#include "deck_list_card_node.h"
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QList>
|
||||
|
|
@ -19,9 +19,9 @@ class QTextCursor;
|
|||
*/
|
||||
enum DeckListModelGroupCriteria
|
||||
{
|
||||
MAIN_TYPE, /**< Group cards by their main type (e.g., creature, instant). */
|
||||
MANA_COST, /**< Group cards by their mana cost. */
|
||||
COLOR /**< Group cards by their color identity. */
|
||||
MAIN_TYPE, /**< Group cards by their main type (e.g., creature, instant). */
|
||||
MANA_COST, /**< Group cards by their mana cost. */
|
||||
COLOR /**< Group cards by their color identity. */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -236,10 +236,10 @@ public:
|
|||
void setActiveGroupCriteria(DeckListModelGroupCriteria newCriteria);
|
||||
|
||||
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. */
|
||||
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. */
|
||||
|
||||
InnerDecklistNode *createNodeIfNeeded(const QString &name, InnerDecklistNode *parent);
|
||||
|
|
@ -253,8 +253,7 @@ private:
|
|||
|
||||
void printDeckListNode(QTextCursor *cursor, InnerDecklistNode *node);
|
||||
|
||||
template <typename T>
|
||||
T getNode(const QModelIndex &index) const
|
||||
template <typename T> T getNode(const QModelIndex &index) const
|
||||
{
|
||||
if (!index.isValid())
|
||||
return dynamic_cast<T>(root);
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
#include "../game/cards/card_database.h"
|
||||
#include "../game/cards/card_database_manager.h"
|
||||
#include "../main.h"
|
||||
#include "deck_list_card_node.h"
|
||||
#include "deck_list.h"
|
||||
#include "deck_list_card_node.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QClipboard>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
#include "../../client/ui/theme_manager.h"
|
||||
#include "../../game/cards/card_info.h"
|
||||
#include "../../settings/cache_settings.h"
|
||||
#include "deck_list_card_node.h"
|
||||
#include "deck_list.h"
|
||||
#include "deck_list_card_node.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ bool AbstractDecklistCardNode::compareName(AbstractDecklistNode *other) const
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool AbstractDecklistCardNode::readElement(QXmlStreamReader *xml)
|
||||
{
|
||||
while (!xml->atEnd()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue