From a5d0cb8b5da539ef2ee410ed739dfcd76270c8e8 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 14 Jan 2020 20:56:15 +0100 Subject: Add icon for hidden files flag --- src/modflagicondelegate.cpp | 1 + src/modlist.cpp | 1 + src/resources.qrc | 1 + src/resources/conflict-hidden.png | Bin 0 -> 231 bytes 4 files changed, 3 insertions(+) create mode 100644 src/resources/conflict-hidden.png (limited to 'src') 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("
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 @@ resources/conflict-mixed-blue.png resources/conflict-overwrite-blue.png resources/red-archive-conflict-loser.png + resources/conflict-hidden.png resources/accessories-text-editor.png resources/x-office-calendar.png resources/dialog-warning_16.png diff --git a/src/resources/conflict-hidden.png b/src/resources/conflict-hidden.png new file mode 100644 index 00000000..84a5da98 Binary files /dev/null and b/src/resources/conflict-hidden.png differ -- cgit v1.3.1