summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl <al12rs@hotmail.com>2020-01-14 20:56:15 +0100
committerAl <al12rs@hotmail.com>2020-01-14 20:56:15 +0100
commita5d0cb8b5da539ef2ee410ed739dfcd76270c8e8 (patch)
treea68bc01a01c8cf0e65585d50374ce4213c6a1b80
parent39f36ca27ac8c14e3c7894d5cc167a8c758e082e (diff)
Add icon for hidden files flag
-rw-r--r--src/modflagicondelegate.cpp1
-rw-r--r--src/modlist.cpp1
-rw-r--r--src/resources.qrc1
-rw-r--r--src/resources/conflict-hidden.pngbin0 -> 231 bytes
4 files changed, 3 insertions, 0 deletions
diff --git a/src/modflagicondelegate.cpp b/src/modflagicondelegate.cpp
index 6e1df147..2dc01164 100644
--- a/src/modflagicondelegate.cpp
+++ b/src/modflagicondelegate.cpp
@@ -56,6 +56,7 @@ QString ModFlagIconDelegate::getFlagIcon(ModInfo::EFlag flag)
case ModInfo::FLAG_INVALID: return QStringLiteral(":/MO/gui/problem");
case ModInfo::FLAG_NOTENDORSED: return QStringLiteral(":/MO/gui/emblem_notendorsed");
case ModInfo::FLAG_NOTES: return QStringLiteral(":/MO/gui/emblem_notes");
+ case ModInfo::FLAG_HIDDEN_FILES: return QStringLiteral(":/MO/gui/emblem_hidden_files");
case ModInfo::FLAG_ALTERNATE_GAME: return QStringLiteral(":/MO/gui/alternate_game");
case ModInfo::FLAG_FOREIGN: return QString();
case ModInfo::FLAG_SEPARATOR: return QString();
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 5cfa7022..f592c4ad 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -162,6 +162,7 @@ QString ModList::getFlagText(ModInfo::EFlag flag, ModInfo::Ptr modInfo) const
case ModInfo::FLAG_ALTERNATE_GAME: return tr("<br>This mod is for a different game, "
"make sure it's compatible or it could cause crashes.");
case ModInfo::FLAG_TRACKED: return tr("Mod is being tracked on the website");
+ case ModInfo::FLAG_HIDDEN_FILES: return tr("Contains hidden files");
default: return "";
}
}
diff --git a/src/resources.qrc b/src/resources.qrc
index 6fc33293..41ccaf83 100644
--- a/src/resources.qrc
+++ b/src/resources.qrc
@@ -53,6 +53,7 @@
<file alias="archive_loose_conflict_mixed">resources/conflict-mixed-blue.png</file>
<file alias="archive_loose_conflict_overwrite">resources/conflict-overwrite-blue.png</file>
<file alias="archive_loose_conflict_overwritten">resources/red-archive-conflict-loser.png</file>
+ <file alias="emblem_hidden_files">resources/conflict-hidden.png</file>
<file alias="emblem_notes">resources/accessories-text-editor.png</file>
<file alias="version_date">resources/x-office-calendar.png</file>
<file alias="warning_16">resources/dialog-warning_16.png</file>
diff --git a/src/resources/conflict-hidden.png b/src/resources/conflict-hidden.png
new file mode 100644
index 00000000..84a5da98
--- /dev/null
+++ b/src/resources/conflict-hidden.png
Binary files differ