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:
parent
f266f0e880
commit
d4c6ae8263
Notes:
sideshowbarker
2024-07-19 04:50:55 +09:00
Author: https://github.com/tomuta
Commit: d4c6ae8263
Pull-request: https://github.com/SerenityOS/serenity/pull/2761
Reviewed-by: https://github.com/Dexesttp
5 changed files with 45 additions and 3 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue