mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -07:00
Add folder dropdown icons to VDS (#5632)
* add svg * update pixmap cache * get icon to work * hide icon when not clickable * use consistent naming * use expandOnly because apparently that leads to higher image quality
This commit is contained in:
parent
4543038fd8
commit
6f5d369416
7 changed files with 82 additions and 8 deletions
|
|
@ -106,6 +106,19 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class DropdownIconPixmapGenerator
|
||||
{
|
||||
private:
|
||||
static QMap<QString, QPixmap> pmCache;
|
||||
|
||||
public:
|
||||
static QPixmap generatePixmap(int height, bool expanded);
|
||||
static void clear()
|
||||
{
|
||||
pmCache.clear();
|
||||
}
|
||||
};
|
||||
|
||||
QPixmap loadColorAdjustedPixmap(const QString &name);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue