summaryrefslogtreecommitdiff
path: root/DevTools/Inspector/RemoteObjectGraphModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DevTools/Inspector/RemoteObjectGraphModel.cpp')
-rw-r--r--DevTools/Inspector/RemoteObjectGraphModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/DevTools/Inspector/RemoteObjectGraphModel.cpp b/DevTools/Inspector/RemoteObjectGraphModel.cpp
index d6df44161b..8579b622da 100644
--- a/DevTools/Inspector/RemoteObjectGraphModel.cpp
+++ b/DevTools/Inspector/RemoteObjectGraphModel.cpp
@@ -96,10 +96,10 @@ int RemoteObjectGraphModel::column_count(const GUI::ModelIndex&) const
return 1;
}
-GUI::Variant RemoteObjectGraphModel::data(const GUI::ModelIndex& index, Role role) const
+GUI::Variant RemoteObjectGraphModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) const
{
auto* remote_object = static_cast<RemoteObject*>(index.internal_data());
- if (role == Role::Icon) {
+ if (role == GUI::ModelRole::Icon) {
if (remote_object->class_name == "Window")
return m_window_icon;
if (remote_object->class_name == "Timer")
@@ -108,7 +108,7 @@ GUI::Variant RemoteObjectGraphModel::data(const GUI::ModelIndex& index, Role rol
return m_layout_icon;
return m_object_icon;
}
- if (role == Role::Display) {
+ if (role == GUI::ModelRole::Display) {
return String::format("%s{%p}", remote_object->class_name.characters(), remote_object->address);
}
return {};