feat: move resource pack images to QPixmapCache
This takes care of evicting entries when the cache gets too big for us, so we can add new entries without much worries. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
@ -105,7 +105,7 @@ static const QMap<QChar, QString> s_value_to_color = {
|
||||
{'f', "#FFFFFF"}
|
||||
};
|
||||
|
||||
void InfoFrame::updateWithResourcePack(const ResourcePack& resource_pack)
|
||||
void InfoFrame::updateWithResourcePack(ResourcePack& resource_pack)
|
||||
{
|
||||
setName(resource_pack.name());
|
||||
|
||||
|
@ -40,7 +40,7 @@ class InfoFrame : public QFrame {
|
||||
|
||||
void updateWithMod(Mod const& m);
|
||||
void updateWithResource(Resource const& resource);
|
||||
void updateWithResourcePack(ResourcePack const& rp);
|
||||
void updateWithResourcePack(ResourcePack& rp);
|
||||
|
||||
public slots:
|
||||
void descriptionEllipsisHandler(QString link);
|
||||
|
Reference in New Issue
Block a user