mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 16:43:55 -07:00
converted phases toolbar to graphics item
This commit is contained in:
parent
20194617bc
commit
78e5068e39
24 changed files with 274 additions and 159 deletions
|
|
@ -4,6 +4,14 @@
|
|||
#include <QPixmap>
|
||||
#include <QMap>
|
||||
|
||||
class PhasePixmapGenerator {
|
||||
private:
|
||||
static QMap<QString, QPixmap> pmCache;
|
||||
public:
|
||||
static QPixmap generatePixmap(int size, QString name);
|
||||
static void clear() { pmCache.clear(); }
|
||||
};
|
||||
|
||||
class CounterPixmapGenerator {
|
||||
private:
|
||||
static QMap<QString, QPixmap> pmCache;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue