Cockatrice/tests/carddatabase/mocks.h
Lukas Brübach 53d80efab8 Turn Card, Settings and Utility into libraries.
Took 4 hours 3 minutes

Took 2 minutes

Took 38 seconds

Took 5 minutes

Took 5 minutes

Took 9 minutes


Took 15 minutes
2025-10-04 11:09:40 +02:00

23 lines
542 B
C++

/*
* Beware of this preprocessor hack used to redefine the settingCache class
* instead of including it and all of its dependencies.
* Always set header guards of mocked objects before including any headers
* with mocked objects.
*/
#include <QObject>
#include <QString>
#define PICTURELOADER_H
#include "card/card_database/card_database.h"
#include "settings/cache_settings.h"
#include "utility/macros.h"
extern SettingsCache *settingsCache;
class CardPictureLoader
{
public:
static void clearPixmapCache(CardInfoPtr card);
};