From 3bb189a42724ad028402ee8d4418703350ff1a2c Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Fri, 1 Jan 2021 14:32:40 +0100 Subject: Add method to retrieve the grouping mode. --- src/modlistview.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/modlistview.h') diff --git a/src/modlistview.h b/src/modlistview.h index dac96822..84e55e2b 100644 --- a/src/modlistview.h +++ b/src/modlistview.h @@ -36,6 +36,14 @@ public: OnViewport = DropIndicatorPosition::OnViewport }; + // indiucate the groupby mode + enum class GroupByMode { + NONE, + SEPARATOR, + CATEGORY, + NEXUS_ID + }; + public: explicit ModListView(QWidget* parent = 0); @@ -58,6 +66,10 @@ public: // int sortColumn() const; + // the current group mode + // + GroupByMode groupByMode() const; + // retrieve the actions from the view // ModListViewActions& actions() const; @@ -173,6 +185,8 @@ private: // void updateGroupByProxy(int groupIndex); + // index in the groupby combo + // enum GroupBy { NONE = 0, CATEGORY = 1, -- cgit v1.3.1