summaryrefslogtreecommitdiff
path: root/src/modlistbypriorityproxy.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-11 18:55:15 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-11 18:55:15 +0100
commite53905329a7a204ad0ad41600a9fb3040b942991 (patch)
treec92be116c2098dda59c85c402bae4cb8c923ab70 /src/modlistbypriorityproxy.h
parent9e663691b0ad23faa979361facb416b7ea0fb08d (diff)
Allow collapsible separator in descending priority.
Diffstat (limited to 'src/modlistbypriorityproxy.h')
-rw-r--r--src/modlistbypriorityproxy.h8
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;
};