mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:27:44 +00:00
LibGUI: Add AllowCallback parameter to ComboBox::set_text()
This commit is contained in:
parent
e74e320750
commit
7d6f5f19fd
2 changed files with 3 additions and 3 deletions
|
@ -274,9 +274,9 @@ String ComboBox::text() const
|
||||||
return m_editor->text();
|
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)
|
void ComboBox::set_only_allow_values_from_model(bool b)
|
||||||
|
|
|
@ -21,7 +21,7 @@ public:
|
||||||
virtual ~ComboBox() override;
|
virtual ~ComboBox() override;
|
||||||
|
|
||||||
String text() const;
|
String text() const;
|
||||||
void set_text(String const&);
|
void set_text(String const&, AllowCallback = AllowCallback::Yes);
|
||||||
|
|
||||||
void open();
|
void open();
|
||||||
void close();
|
void close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue