diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-28 02:47:54 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-28 02:47:54 +0200 |
commit | ea71281629706b4a8187108e4877b440e0e9b4df (patch) | |
tree | 6f3591acbbebc479efeff8cbf1ce679dc6f1d8f2 /api | |
parent | c51512f94036b7d13b98cb02b8e8c1e549e7b448 (diff) | |
download | MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.tar MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.tar.gz MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.tar.lz MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.tar.xz MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.zip |
NOISSUE fix aspect ratio issues with the instance icon in the instance toolbar
Diffstat (limited to 'api')
-rw-r--r-- | api/gui/icons/IconList.cpp | 14 | ||||
-rw-r--r-- | api/gui/icons/IconList.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/api/gui/icons/IconList.cpp b/api/gui/icons/IconList.cpp index 3da0a8ea..aed96869 100644 --- a/api/gui/icons/IconList.cpp +++ b/api/gui/icons/IconList.cpp @@ -392,20 +392,6 @@ QIcon IconList::getIcon(const QString &key) const return QIcon(); } -QIcon IconList::getBigIcon(const QString &key) const -{ - int icon_index = getIconIndex(key); - - // Fallback for icons that don't exist. - icon_index = getIconIndex(icon_index == -1 ? "infinity" : key); - - if (icon_index == -1) - return QIcon(); - - QPixmap bigone = icons[icon_index].icon().pixmap(256,256).scaled(256,256); - return QIcon(bigone); -} - int IconList::getIconIndex(const QString &key) const { auto iter = name_index.find(key == "default" ? "infinity" : key); diff --git a/api/gui/icons/IconList.h b/api/gui/icons/IconList.h index 6a6e8b5c..41ec0bdd 100644 --- a/api/gui/icons/IconList.h +++ b/api/gui/icons/IconList.h @@ -38,7 +38,6 @@ public: virtual ~IconList() {}; QIcon getIcon(const QString &key) const; - QIcon getBigIcon(const QString &key) const; int getIconIndex(const QString &key) const; virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; |