From e53905329a7a204ad0ad41600a9fb3040b942991 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Mon, 11 Jan 2021 18:55:15 +0100 Subject: Allow collapsible separator in descending priority. --- src/modlistbypriorityproxy.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modlistbypriorityproxy.h') diff --git a/src/modlistbypriorityproxy.h b/src/modlistbypriorityproxy.h index 74ecc942..380e257b 100644 --- a/src/modlistbypriorityproxy.h +++ b/src/modlistbypriorityproxy.h @@ -28,6 +28,13 @@ public: ~ModListByPriorityProxy(); void setProfile(Profile* profile); + + // set the sort order but does not refresh the proxy + // + void setSortOrder(Qt::SortOrder order); + + // refresh the proxy by rebuilding the inner structure + // void refresh(); void setSourceModel(QAbstractItemModel* sourceModel) override; @@ -83,6 +90,7 @@ private: OrganizerCore& m_core; Profile* m_profile; + Qt::SortOrder m_sortOrder = Qt::AscendingOrder; bool m_dropExpanded = false; ModListView::DropPosition m_dropPosition = ModListView::DropPosition::OnItem; }; -- cgit v1.3.1