summaryrefslogtreecommitdiffstats
path: root/api/gui/icons
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-09-28 02:47:54 +0200
committerPetr Mrázek <peterix@gmail.com>2017-09-28 02:47:54 +0200
commitea71281629706b4a8187108e4877b440e0e9b4df (patch)
tree6f3591acbbebc479efeff8cbf1ce679dc6f1d8f2 /api/gui/icons
parentc51512f94036b7d13b98cb02b8e8c1e549e7b448 (diff)
downloadMultiMC-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/gui/icons')
-rw-r--r--api/gui/icons/IconList.cpp14
-rw-r--r--api/gui/icons/IconList.h1
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;