summaryrefslogtreecommitdiff
path: root/src/modlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modlist.h')
-rw-r--r--src/modlist.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modlist.h b/src/modlist.h
index 5c7f28ee..8d0a2384 100644
--- a/src/modlist.h
+++ b/src/modlist.h
@@ -366,10 +366,15 @@ private:
//
int dropPriority(int row, const QModelIndex& parent) const;
-private slots:
-
private:
+ // the priority of backups and overwrite for sorting (and display, although
+ // those are not displayed), these do not correspond to the actual priority
+ // in the mod list
+ //
+ static constexpr int BACKUP_PRIORITY = -1;
+ static constexpr int OVERWRITE_PRIORITY = std::numeric_limits<int>::max();
+
struct TModInfo {
TModInfo(unsigned int index, ModInfo::Ptr modInfo)
: modInfo(modInfo), nameOrder(index), priorityOrder(0), modIDOrder(0), categoryOrder(0) {}