aboutsummaryrefslogtreecommitdiff
path: root/launcher/icons/MMCIcon.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-04 19:42:36 +0200
committerGitHub <noreply@github.com>2023-08-04 19:42:36 +0200
commitae793f6cf11658c9abc5111e82d5ba7b3e6af127 (patch)
treeed41f30e2c0f02e4be1d42324b3f05fbab75b2cd /launcher/icons/MMCIcon.h
parent50c7d39e082f0a7dbd977401e16d5adf534d9770 (diff)
parent1d638e018ac40fbfb35dd117f9a948c0cf35eadd (diff)
downloadPrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.tar.gz
PrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.tar.bz2
PrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.zip
Merge pull request #1459 from Scrumplex/format
Diffstat (limited to 'launcher/icons/MMCIcon.h')
-rw-r--r--launcher/icons/MMCIcon.h24
1 files changed, 6 insertions, 18 deletions
diff --git a/launcher/icons/MMCIcon.h b/launcher/icons/MMCIcon.h
index 13d99318..c968f306 100644
--- a/launcher/icons/MMCIcon.h
+++ b/launcher/icons/MMCIcon.h
@@ -14,32 +14,20 @@
*/
#pragma once
-#include <QString>
#include <QDateTime>
#include <QIcon>
+#include <QString>
-enum IconType : unsigned
-{
- Builtin,
- Transient,
- FileBased,
- ICONS_TOTAL,
- ToBeDeleted
-};
+enum IconType : unsigned { Builtin, Transient, FileBased, ICONS_TOTAL, ToBeDeleted };
-struct MMCImage
-{
+struct MMCImage {
QIcon icon;
QString key;
QString filename;
- bool present() const
- {
- return !icon.isNull() || !key.isEmpty();
- }
+ bool present() const { return !icon.isNull() || !key.isEmpty(); }
};
-struct MMCIcon
-{
+struct MMCIcon {
QString m_key;
QString m_name;
MMCImage m_images[ICONS_TOTAL];
@@ -51,7 +39,7 @@ struct 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);
+ void replace(IconType new_type, const QString& key);
bool isBuiltIn() const;
QString getFilePath() const;
};