mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue