diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-10 02:54:53 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-10 02:54:53 +0100 |
commit | f9d94a45eebd5fb7b14d4bcc6ad77cb96ecdd771 (patch) | |
tree | 0b8f492b470c835bc814ebc786dc73bfe2b0f3f4 /api/gui/icons/MMCIcon.h | |
parent | 27e26a656b8d9f0aef1dd6a18b50ecc9465494bd (diff) | |
download | PrismLauncher-f9d94a45eebd5fb7b14d4bcc6ad77cb96ecdd771.tar.gz PrismLauncher-f9d94a45eebd5fb7b14d4bcc6ad77cb96ecdd771.tar.bz2 PrismLauncher-f9d94a45eebd5fb7b14d4bcc6ad77cb96ecdd771.zip |
NOISSUE allow using icon themes for instances and instance badges
Diffstat (limited to 'api/gui/icons/MMCIcon.h')
-rw-r--r-- | api/gui/icons/MMCIcon.h | 5 |
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); }; |