summaryrefslogtreecommitdiff
path: root/src/modconflicticondelegate.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2023-07-09 17:36:03 +0200
committerGitHub <noreply@github.com>2023-07-09 17:36:03 +0200
commitef94aee28464039672b277243a0181ae93550d6c (patch)
tree0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/modconflicticondelegate.h
parent7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff)
parent3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff)
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
Diffstat (limited to 'src/modconflicticondelegate.h')
-rw-r--r--src/modconflicticondelegate.h36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/modconflicticondelegate.h b/src/modconflicticondelegate.h
index fd524444..81e97179 100644
--- a/src/modconflicticondelegate.h
+++ b/src/modconflicticondelegate.h
@@ -13,39 +13,35 @@ class ModConflictIconDelegate : public IconDelegate
Q_OBJECT;
public:
- explicit ModConflictIconDelegate(ModListView* view, int logicalIndex = -1, int compactSize = 80);
- QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex &index) const override;
+ explicit ModConflictIconDelegate(ModListView* view, int logicalIndex = -1,
+ int compactSize = 80);
+ QSize sizeHint(const QStyleOptionViewItem& option,
+ const QModelIndex& index) const override;
protected:
-
- static QList<QString> getIconsForFlags(std::vector<ModInfo::EConflictFlag> flags, bool compact);
+ static QList<QString> getIconsForFlags(std::vector<ModInfo::EConflictFlag> flags,
+ bool compact);
static QString getFlagIcon(ModInfo::EConflictFlag flag);
- QList<QString> getIcons(const QModelIndex &index) const override;
- size_t getNumIcons(const QModelIndex &index) const override;
+ QList<QString> getIcons(const QModelIndex& index) const override;
+ size_t getNumIcons(const QModelIndex& index) const override;
// constructor for color table
//
- ModConflictIconDelegate() : ModConflictIconDelegate(nullptr) { }
+ ModConflictIconDelegate() : ModConflictIconDelegate(nullptr) {}
private:
static constexpr std::array s_ConflictFlags{
- ModInfo::FLAG_CONFLICT_MIXED,
- ModInfo::FLAG_CONFLICT_OVERWRITE,
- ModInfo::FLAG_CONFLICT_OVERWRITTEN,
- ModInfo::FLAG_CONFLICT_REDUNDANT
- };
+ ModInfo::FLAG_CONFLICT_MIXED, ModInfo::FLAG_CONFLICT_OVERWRITE,
+ ModInfo::FLAG_CONFLICT_OVERWRITTEN, ModInfo::FLAG_CONFLICT_REDUNDANT};
static constexpr std::array s_ArchiveLooseConflictFlags{
- ModInfo::FLAG_ARCHIVE_LOOSE_CONFLICT_OVERWRITE,
- ModInfo::FLAG_ARCHIVE_LOOSE_CONFLICT_OVERWRITTEN
- };
+ ModInfo::FLAG_ARCHIVE_LOOSE_CONFLICT_OVERWRITE,
+ ModInfo::FLAG_ARCHIVE_LOOSE_CONFLICT_OVERWRITTEN};
static constexpr std::array s_ArchiveConflictFlags{
- ModInfo::FLAG_ARCHIVE_CONFLICT_MIXED,
- ModInfo::FLAG_ARCHIVE_CONFLICT_OVERWRITE,
- ModInfo::FLAG_ARCHIVE_CONFLICT_OVERWRITTEN
- };
+ ModInfo::FLAG_ARCHIVE_CONFLICT_MIXED, ModInfo::FLAG_ARCHIVE_CONFLICT_OVERWRITE,
+ ModInfo::FLAG_ARCHIVE_CONFLICT_OVERWRITTEN};
ModListView* m_view;
};
-#endif // MODCONFLICTICONDELEGATE_H
+#endif // MODCONFLICTICONDELEGATE_H