mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibGUI: Add clear_selection helper for ComboBox
This patch adds a helper to ComboBox allowing it to clear the current selection and show a blank editor.
This commit is contained in:
parent
e9e1959d4c
commit
84780f3ed5
Notes:
sideshowbarker
2024-07-17 10:07:18 +09:00
Author: https://github.com/networkException
Commit: 84780f3ed5
Pull-request: https://github.com/SerenityOS/serenity/pull/14305
Reviewed-by: https://github.com/linusg ✅
2 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,7 @@ public:
|
|||
|
||||
size_t selected_index() const;
|
||||
void set_selected_index(size_t index, AllowCallback = AllowCallback::Yes);
|
||||
void clear_selection();
|
||||
|
||||
bool only_allow_values_from_model() const { return m_only_allow_values_from_model; }
|
||||
void set_only_allow_values_from_model(bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue