mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
@@ -61,10 +61,10 @@ String StylePropertiesModel::column_name(int column_index) const
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
GUI::Variant StylePropertiesModel::data(const GUI::ModelIndex& index, Role role) const
|
||||
GUI::Variant StylePropertiesModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) const
|
||||
{
|
||||
auto& value = m_values[index.row()];
|
||||
if (role == Role::Display) {
|
||||
if (role == GUI::ModelRole::Display) {
|
||||
if (index.column() == Column::PropertyName)
|
||||
return value.name;
|
||||
if (index.column() == Column::PropertyValue)
|
||||
|
||||
Reference in New Issue
Block a user