mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
GComboBox: Include the selected index with the on_change notification
This will be useful for clients that need to fetch additional data from the model on selection change.
This commit is contained in:
parent
ffff150435
commit
6311a617be
3 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@ public:
|
|||
int model_column() const { return m_list_view->model_column(); }
|
||||
void set_model_column(int column) { m_list_view->set_model_column(column); }
|
||||
|
||||
Function<void(const String&)> on_change;
|
||||
Function<void(const String&, const GModelIndex&)> on_change;
|
||||
Function<void()> on_return_pressed;
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue