mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibGUI: ComboBox, add "set_selected_index" method
Easy way to set selected item.
This commit is contained in:
parent
db692a807b
commit
7194b4823e
Notes:
sideshowbarker
2024-07-19 08:04:28 +09:00
Author: https://github.com/asliturk
Commit: 7194b4823e
Pull-request: https://github.com/SerenityOS/serenity/pull/1526
Reviewed-by: https://github.com/awesomekling
2 changed files with 13 additions and 1 deletions
|
@ -46,6 +46,8 @@ public:
|
|||
const Model* model() const;
|
||||
void set_model(NonnullRefPtr<Model>);
|
||||
|
||||
void set_selected_index(size_t index);
|
||||
|
||||
bool only_allow_values_from_model() const { return m_only_allow_values_from_model; }
|
||||
void set_only_allow_values_from_model(bool);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue