aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/TexturePack.h
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-04 23:45:24 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-04 23:45:24 -0700
commitd384d991fad80cdadf6486d61e5c06a692a0031d (patch)
tree3adc89354b54596c8da70a2878b5641fa25d63ed /launcher/minecraft/mod/TexturePack.h
parent9913080a829acb4ca921c3a68e0caefad0ebcaa1 (diff)
downloadPrismLauncher-d384d991fad80cdadf6486d61e5c06a692a0031d.tar.gz
PrismLauncher-d384d991fad80cdadf6486d61e5c06a692a0031d.tar.bz2
PrismLauncher-d384d991fad80cdadf6486d61e5c06a692a0031d.zip
feat(texturepackPage): icon column
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/TexturePack.h')
-rw-r--r--launcher/minecraft/mod/TexturePack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/minecraft/mod/TexturePack.h b/launcher/minecraft/mod/TexturePack.h
index 81bd5c69..57700565 100644
--- a/launcher/minecraft/mod/TexturePack.h
+++ b/launcher/minecraft/mod/TexturePack.h
@@ -40,13 +40,13 @@ class TexturePack : public Resource {
[[nodiscard]] QString description() const { return m_description; }
/** Gets the image of the texture pack, converted to a QPixmap for drawing, and scaled to size. */
- [[nodiscard]] QPixmap image(QSize size);
+ [[nodiscard]] QPixmap image(QSize size, Qt::AspectRatioMode mode = Qt::AspectRatioMode::IgnoreAspectRatio) const;
/** Thread-safe. */
void setDescription(QString new_description);
/** Thread-safe. */
- void setImage(QImage new_image);
+ void setImage(QImage new_image) const;
bool valid() const override;
@@ -65,5 +65,5 @@ class TexturePack : public Resource {
struct {
QPixmapCache::Key key;
bool was_ever_used = false;
- } m_pack_image_cache_key;
+ } mutable m_pack_image_cache_key;
};