1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

LibGUI: Add ability to disable multiselect for views

This commit is contained in:
Tom 2020-07-11 23:11:53 -06:00 committed by Andreas Kling
parent f266f0e880
commit d4c6ae8263
5 changed files with 45 additions and 3 deletions

View file

@ -103,10 +103,14 @@ public:
Action& view_as_columns_action() { return *m_view_as_columns_action; }
#endif
bool is_multi_select() const { return m_multi_select; }
void set_multi_select(bool);
private:
MultiView();
void build_actions();
void apply_multi_select();
ViewMode m_view_mode { Invalid };
int m_model_column { 0 };
@ -126,6 +130,8 @@ private:
#endif
OwnPtr<ActionGroup> m_view_type_action_group;
bool m_multi_select { true };
};
}