| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef TREEVIEWCOLUMNSMENU_H |
| 4 | #define TREEVIEWCOLUMNSMENU_H |
| 5 | |
| 6 | #include "gui/reusable/nonclosablemenu.h" |
| 7 | |
| 8 | class QHeaderView; |
| 9 | |
| 10 | class TreeViewColumnsMenu : public NonClosableMenu { |
| 11 | public: |
| 12 | explicit TreeViewColumnsMenu(QHeaderView* parent); |
| 13 | |
| 14 | private slots: |
| 15 | void prepareMenu(); |
| 16 | void actionTriggered(bool toggle); |
| 17 | |
| 18 | private: |
| 19 | QHeaderView* header(); |
| 20 | }; |
| 21 | |
| 22 | #endif // TREEVIEWCOLUMNSMENU_H |