Qt: Correct behavior of sorting in game list model

Turns out Qt inverts it for us.
This commit is contained in:
Connor McLaughlin
2021-11-10 13:35:39 +10:00
parent fca4a2ec28
commit a2223124ad
3 changed files with 29 additions and 40 deletions

View File

@@ -47,9 +47,9 @@ public:
void refresh();
bool titlesLessThan(int left_row, int right_row, bool ascending) const;
bool titlesLessThan(int left_row, int right_row) const;
bool lessThan(const QModelIndex& left_index, const QModelIndex& right_index, int column, bool ascending) const;
bool lessThan(const QModelIndex& left_index, const QModelIndex& right_index, int column) const;
bool getShowCoverTitles() const { return m_show_titles_for_covers; }
void setShowCoverTitles(bool enabled) { m_show_titles_for_covers = enabled; }