LibGUI: Add AllowCallback parameter to ComboBox::set_text()

This commit is contained in:
Sam Atkins 2022-04-29 20:37:08 +01:00 committed by Andreas Kling
parent e74e320750
commit 7d6f5f19fd
2 changed files with 3 additions and 3 deletions

View file

@ -274,9 +274,9 @@ String ComboBox::text() const
return m_editor->text();
}
void ComboBox::set_text(String const& text)
void ComboBox::set_text(String const& text, AllowCallback allow_callback)
{
m_editor->set_text(text);
m_editor->set_text(text, allow_callback);
}
void ComboBox::set_only_allow_values_from_model(bool b)

View file

@ -21,7 +21,7 @@ public:
virtual ~ComboBox() override;
String text() const;
void set_text(String const&);
void set_text(String const&, AllowCallback = AllowCallback::Yes);
void open();
void close();