mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
nicer looking counters
This commit is contained in:
parent
f6849ff02b
commit
2e90a85999
17 changed files with 3054 additions and 13 deletions
|
|
@ -4,6 +4,14 @@
|
|||
#include <QPixmap>
|
||||
#include <QMap>
|
||||
|
||||
class CounterPixmapGenerator {
|
||||
private:
|
||||
static QMap<QString, QPixmap> pmCache;
|
||||
public:
|
||||
static QPixmap generatePixmap(int size, QString name, bool highlight);
|
||||
static void clear() { pmCache.clear(); }
|
||||
};
|
||||
|
||||
class PingPixmapGenerator {
|
||||
private:
|
||||
static QMap<int, QPixmap> pmCache;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue