diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2021-01-14 09:11:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-14 09:11:37 +0100 |
| commit | 34f7ae24501f75d5a74a09b6af939db6edaf6f1c (patch) | |
| tree | 616c67f6d23f951c98003c710bab63e2192a4b7b /src/modlistbypriorityproxy.h | |
| parent | c3334e7b4d17f3005bd3c4dab8eee42b1e5510f8 (diff) | |
| parent | 18f70a2dff138f273a9b6babaec226775a03649f (diff) | |
Merge pull request #1357 from Holt59/collapsible-separators
Collapsible separators in descending priority.
Diffstat (limited to 'src/modlistbypriorityproxy.h')
| -rw-r--r-- | src/modlistbypriorityproxy.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; }; |
