mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
user level display
This commit is contained in:
parent
5b75cea661
commit
23a0080c45
16 changed files with 1030 additions and 60 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef PINGPIXMAPGENERATOR_H
|
||||
#define PINGPIXMAPGENERATOR_H
|
||||
#ifndef PIXMAPGENERATOR_H
|
||||
#define PIXMAPGENERATOR_H
|
||||
|
||||
#include <QPixmap>
|
||||
#include <QMap>
|
||||
|
|
@ -9,6 +9,7 @@ private:
|
|||
static QMap<int, QPixmap> pmCache;
|
||||
public:
|
||||
static QPixmap generatePixmap(int size, int value, int max);
|
||||
static void clear() { pmCache.clear(); }
|
||||
};
|
||||
|
||||
class CountryPixmapGenerator {
|
||||
|
|
@ -16,6 +17,15 @@ private:
|
|||
static QMap<QString, QPixmap> pmCache;
|
||||
public:
|
||||
static QPixmap generatePixmap(int height, const QString &countryCode);
|
||||
static void clear() { pmCache.clear(); }
|
||||
};
|
||||
|
||||
class UserLevelPixmapGenerator {
|
||||
private:
|
||||
static QMap<int, QPixmap> pmCache;
|
||||
public:
|
||||
static QPixmap generatePixmap(int height, int userLevel);
|
||||
static void clear() { pmCache.clear(); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue