1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -19,7 +19,7 @@ PlaylistWidget::PlaylistWidget()
m_table_view->set_selection_mode(GUI::AbstractView::SelectionMode::SingleSelection);
m_table_view->set_selection_behavior(GUI::AbstractView::SelectionBehavior::SelectRows);
m_table_view->set_highlight_selected_rows(true);
m_table_view->on_doubleclick = [&](const Gfx::Point<int>& point) {
m_table_view->on_doubleclick = [&](Gfx::Point<int> const& point) {
auto player = dynamic_cast<Player*>(window()->main_widget());
auto index = m_table_view->index_at_event_position(point);
if (!index.is_valid())
@ -50,7 +50,7 @@ GUI::Variant PlaylistModel::data(const GUI::ModelIndex& index, GUI::ModelRole ro
}
if (role == GUI::ModelRole::Sort)
return data(index, GUI::ModelRole::Display);
if (role == static_cast<GUI::ModelRole>(PlaylistModelCustomRole::FilePath)) //path
if (role == static_cast<GUI::ModelRole>(PlaylistModelCustomRole::FilePath)) // path
return m_playlist_items[index.row()].path;
return {};