diff options
author | networkException <git@nwex.de> | 2022-06-16 20:17:44 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-17 19:46:30 +0100 |
commit | 84780f3ed5bf2fe42c895337dd6ccf90ce2620e5 (patch) | |
tree | 5174980caebb325bc92c1246d7529509f5a76ca4 /Userland/Libraries/LibGUI/ComboBox.h | |
parent | e9e1959d4c15f54cd9915e689e379992292fde86 (diff) | |
download | serenity-84780f3ed5bf2fe42c895337dd6ccf90ce2620e5.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibGUI/ComboBox.h')
-rw-r--r-- | Userland/Libraries/LibGUI/ComboBox.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/ComboBox.h b/Userland/Libraries/LibGUI/ComboBox.h index 615d2f0534..598b080940 100644 --- a/Userland/Libraries/LibGUI/ComboBox.h +++ b/Userland/Libraries/LibGUI/ComboBox.h @@ -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); |