LibGUI: Put all classes in the GUI namespace and remove the leading G

This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
Andreas Kling 2020-02-02 15:07:41 +01:00
parent 2d39da5405
commit c5bd9d4ed1
Notes: sideshowbarker 2024-07-19 09:41:33 +09:00
337 changed files with 5400 additions and 4816 deletions

View file

@ -38,7 +38,7 @@ VBWidgetPropertyModel::~VBWidgetPropertyModel()
{
}
int VBWidgetPropertyModel::row_count(const GModelIndex&) const
int VBWidgetPropertyModel::row_count(const GUI::ModelIndex&) const
{
return m_widget.m_properties.size();
}
@ -57,7 +57,7 @@ String VBWidgetPropertyModel::column_name(int column) const
}
}
GModel::ColumnMetadata VBWidgetPropertyModel::column_metadata(int column) const
GUI::Model::ColumnMetadata VBWidgetPropertyModel::column_metadata(int column) const
{
UNUSED_PARAM(column);
if (column == Column::Name)
@ -65,7 +65,7 @@ GModel::ColumnMetadata VBWidgetPropertyModel::column_metadata(int column) const
return { 90, TextAlignment::CenterLeft };
}
GVariant VBWidgetPropertyModel::data(const GModelIndex& index, Role role) const
GUI::Variant VBWidgetPropertyModel::data(const GUI::ModelIndex& index, Role role) const
{
if (role == Role::Custom) {
auto& property = m_widget.m_properties[index.row()];
@ -100,7 +100,7 @@ GVariant VBWidgetPropertyModel::data(const GModelIndex& index, Role role) const
return {};
}
void VBWidgetPropertyModel::set_data(const GModelIndex& index, const GVariant& value)
void VBWidgetPropertyModel::set_data(const GUI::ModelIndex& index, const GUI::Variant& value)
{
ASSERT(index.column() == Column::Value);
auto& property = m_widget.m_properties[index.row()];
@ -108,7 +108,7 @@ void VBWidgetPropertyModel::set_data(const GModelIndex& index, const GVariant& v
property.set_value(value);
}
bool VBWidgetPropertyModel::is_editable(const GModelIndex& index) const
bool VBWidgetPropertyModel::is_editable(const GUI::ModelIndex& index) const
{
if (index.column() != Column::Value)
return false;