1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09: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
Notes: sideshowbarker 2024-07-19 04:50:55 +09:00
5 changed files with 45 additions and 3 deletions

View file

@ -47,6 +47,9 @@ public:
bool is_editable() const { return m_editable; }
void set_editable(bool editable) { m_editable = editable; }
bool is_multi_select() const { return m_multi_select; }
void set_multi_select(bool);
virtual bool accepts_focus() const override { return true; }
virtual void did_update_model(unsigned flags);
virtual void did_update_selection();
@ -110,6 +113,7 @@ private:
OwnPtr<ModelEditingDelegate> m_editing_delegate;
ModelSelection m_selection;
bool m_activates_on_selection { false };
bool m_multi_select { true };
};
}