mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 10:15:07 +00:00
LibGUI: Convert various little things to GModelSelection
All the little things that were using the per-model seletion are now moving over to GModelSelection.
This commit is contained in:
parent
d2d1a30d61
commit
fb18613e8a
3 changed files with 6 additions and 9 deletions
|
@ -12,7 +12,7 @@ GComboBox::GComboBox(GWidget* parent)
|
|||
m_editor = new GTextEditor(GTextEditor::Type::SingleLine, this);
|
||||
m_editor->on_change = [this] {
|
||||
if (on_change)
|
||||
on_change(m_editor->text(), model()->selected_index());
|
||||
on_change(m_editor->text(), m_list_view->selection().first());
|
||||
};
|
||||
m_editor->on_return_pressed = [this] {
|
||||
if (on_return_pressed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue