summaryrefslogtreecommitdiffstats
path: root/api/gui/icons/MMCIcon.h
diff options
context:
space:
mode:
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());
};