mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:25:08 +00:00
LibGUI: Run clang-format on everything.
This commit is contained in:
parent
bc951ca565
commit
7ad8790d80
43 changed files with 525 additions and 363 deletions
|
@ -1,5 +1,5 @@
|
|||
#include <LibGUI/GModel.h>
|
||||
#include <LibGUI/GAbstractView.h>
|
||||
#include <LibGUI/GModel.h>
|
||||
|
||||
GModel::GModel()
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ void GModel::did_update()
|
|||
{
|
||||
if (on_model_update)
|
||||
on_model_update(*this);
|
||||
for_each_view([] (auto& view) {
|
||||
for_each_view([](auto& view) {
|
||||
view.did_update_model();
|
||||
});
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ void GModel::set_selected_index(const GModelIndex& index)
|
|||
m_selected_index = index;
|
||||
if (on_selection_changed)
|
||||
on_selection_changed(index);
|
||||
for_each_view([] (auto& view) {
|
||||
for_each_view([](auto& view) {
|
||||
view.did_update_selection();
|
||||
});
|
||||
}
|
||||
|
@ -54,9 +54,9 @@ GModelIndex GModel::create_index(int row, int column, void* data) const
|
|||
GModelIndex GModel::sibling(int row, int column, const GModelIndex& parent) const
|
||||
{
|
||||
if (!parent.is_valid())
|
||||
return { };
|
||||
return {};
|
||||
int row_count = this->row_count(parent);
|
||||
if (row < 0 || row > row_count)
|
||||
return { };
|
||||
return {};
|
||||
return index(row, column, parent);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue