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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/gui/icons/MMCIcon.h b/api/gui/icons/MMCIcon.h
index 4bc7ecdc..23231945 100644
--- a/api/gui/icons/MMCIcon.h
+++ b/api/gui/icons/MMCIcon.h
@@ -24,11 +24,11 @@
struct MULTIMC_GUI_EXPORT MMCImage
{
QIcon icon;
+ QString key;
QString filename;
- QDateTime changed;
bool present() const
{
- return !icon.isNull();
+ return !icon.isNull() && !key.isEmpty();
}
};
@@ -45,4 +45,5 @@ struct MULTIMC_GUI_EXPORT MMCIcon
QIcon icon() const;
void remove(IconType rm_type);
void replace(IconType new_type, QIcon icon, QString path = QString());
+ void replace(IconType new_type, const QString &key);
};