summaryrefslogtreecommitdiff
path: root/Demos/WidgetGallery/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/WidgetGallery/main.cpp')
-rw-r--r--Demos/WidgetGallery/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp
index 9fad2e7679..8be4d74dd9 100644
--- a/Demos/WidgetGallery/main.cpp
+++ b/Demos/WidgetGallery/main.cpp
@@ -65,11 +65,11 @@ public:
virtual ~ListViewModel() override { }
virtual int row_count(const GUI::ModelIndex&) const override { return m_model_items.size(); }
virtual int column_count(const GUI::ModelIndex&) const override { return 1; }
- virtual GUI::Variant data(const GUI::ModelIndex& index, Role role = Role::Display) const override
+ virtual GUI::Variant data(const GUI::ModelIndex& index, GUI::ModelRole role) const override
{
ASSERT(index.is_valid());
ASSERT(index.column() == 0);
- if (role == Role::Display)
+ if (role == GUI::ModelRole::Display)
return m_model_items.at(index.row());
return {};
}