diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-01 14:32:40 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:19 +0100 |
| commit | 3bb189a42724ad028402ee8d4418703350ff1a2c (patch) | |
| tree | 46121f332b03b10110b7b72a641c154165109ca5 /src/modlistview.h | |
| parent | 3560093f1b37fcf2386e81aaac2fa78005a173ad (diff) | |
Add method to retrieve the grouping mode.
Diffstat (limited to 'src/modlistview.h')
| -rw-r--r-- | src/modlistview.h | 14 |
1 files changed, 14 insertions, 0 deletions
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,
|
