mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibGUI: Move GUI::Model::Role to GUI::ModelRole
This is preparation for using ModelRole in the ModelIndex API.
This commit is contained in:
@@ -478,7 +478,7 @@ int main(int argc, char** argv)
|
||||
toolbar.add_separator();
|
||||
|
||||
g_project_tree_view->on_activation = [&](auto& index) {
|
||||
auto filename = g_project_tree_view->model()->data(index, GUI::Model::Role::Custom).to_string();
|
||||
auto filename = g_project_tree_view->model()->data(index, GUI::ModelRole::Custom).to_string();
|
||||
open_file(filename);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user