summaryrefslogtreecommitdiffstats
path: root/api/gui/icons/MMCIcon.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-05-03 00:27:28 +0200
committerPetr Mrázek <peterix@gmail.com>2016-05-03 00:27:28 +0200
commite1a530f84dce9b4c1b262669157359fbbd436428 (patch)
treecc372ad70b91977d1f038fe835a139cdf6bfb7d1 /api/gui/icons/MMCIcon.h
parentc50b3cdeec1ce30de7c67f62f026d689afe6930a (diff)
downloadMultiMC-e1a530f84dce9b4c1b262669157359fbbd436428.tar
MultiMC-e1a530f84dce9b4c1b262669157359fbbd436428.tar.gz
MultiMC-e1a530f84dce9b4c1b262669157359fbbd436428.tar.lz
MultiMC-e1a530f84dce9b4c1b262669157359fbbd436428.tar.xz
MultiMC-e1a530f84dce9b4c1b262669157359fbbd436428.zip
GH-1559 Fix FTB icons
This was caused by separation of GUI and logic. Now logic has an interface that GUI implements. It should be expanded upon later.
Diffstat (limited to 'api/gui/icons/MMCIcon.h')
-rw-r--r--api/gui/icons/MMCIcon.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/api/gui/icons/MMCIcon.h b/api/gui/icons/MMCIcon.h
index 6f9617c2..4bc7ecdc 100644
--- a/api/gui/icons/MMCIcon.h
+++ b/api/gui/icons/MMCIcon.h
@@ -17,6 +17,7 @@
#include <QString>
#include <QDateTime>
#include <QIcon>
+#include <icons/IIconList.h>
#include "multimc_gui_export.h"
@@ -33,23 +34,15 @@ struct MULTIMC_GUI_EXPORT MMCImage
struct MULTIMC_GUI_EXPORT MMCIcon
{
- enum Type : unsigned
- {
- Builtin,
- Transient,
- FileBased,
- ICONS_TOTAL,
- ToBeDeleted
- };
QString m_key;
QString m_name;
MMCImage m_images[ICONS_TOTAL];
- Type m_current_type = ToBeDeleted;
+ IconType m_current_type = ToBeDeleted;
- Type type() const;
+ IconType type() const;
QString name() const;
- bool has(Type _type) const;
+ bool has(IconType _type) const;
QIcon icon() const;
- void remove(Type rm_type);
- void replace(Type new_type, QIcon icon, QString path = QString());
+ void remove(IconType rm_type);
+ void replace(IconType new_type, QIcon icon, QString path = QString());
};