summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ComboBox.h
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2022-06-16 20:17:44 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-17 19:46:30 +0100
commit84780f3ed5bf2fe42c895337dd6ccf90ce2620e5 (patch)
tree5174980caebb325bc92c1246d7529509f5a76ca4 /Userland/Libraries/LibGUI/ComboBox.h
parente9e1959d4c15f54cd9915e689e379992292fde86 (diff)
downloadserenity-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.h1
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);