mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-18 15:32:56 +00:00
LibGUI: Add AllowCallback parameter to ComboBox::set_text()
This commit is contained in:
parent
e74e320750
commit
7d6f5f19fd
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue