mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 03:25:07 +00:00
LibGUI: Remove GModel activations to GAbstractView.
Now you can hook activation via GAbstractView::on_activation. The design still isn't quite right, we should eventually move the selection away from the model somehow.
This commit is contained in:
parent
bffaa5ece6
commit
fa232ac180
25 changed files with 107 additions and 104 deletions
|
@ -44,8 +44,6 @@ void GModel::set_selected_index(const GModelIndex& index)
|
|||
for_each_view([] (auto& view) {
|
||||
view.did_update_selection();
|
||||
});
|
||||
if (m_activates_on_selection && is_valid(index))
|
||||
activate(index);
|
||||
}
|
||||
|
||||
GModelIndex GModel::create_index(int row, int column, void* data) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue