mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -141,7 +141,7 @@ void TabWidget::resize_event(ResizeEvent& event)
|
|||
m_active_widget->set_relative_rect(child_rect_for_size(event.size()));
|
||||
}
|
||||
|
||||
Gfx::IntRect TabWidget::child_rect_for_size(const Gfx::IntSize& size) const
|
||||
Gfx::IntRect TabWidget::child_rect_for_size(Gfx::IntSize const& size) const
|
||||
{
|
||||
Gfx::IntRect rect;
|
||||
switch (m_tab_position) {
|
||||
|
@ -401,7 +401,7 @@ Gfx::IntRect TabWidget::close_button_rect(size_t index) const
|
|||
return close_button_rect;
|
||||
}
|
||||
|
||||
int TabWidget::TabData::width(const Gfx::Font& font) const
|
||||
int TabWidget::TabData::width(Gfx::Font const& font) const
|
||||
{
|
||||
auto width = 16 + font.width(title) + (icon ? (16 + 4) : 0);
|
||||
// NOTE: This needs to always be an odd number, because the button rect
|
||||
|
@ -553,7 +553,7 @@ void TabWidget::set_tab_title(Widget& tab, StringView title)
|
|||
}
|
||||
}
|
||||
|
||||
void TabWidget::set_tab_icon(Widget& tab, const Gfx::Bitmap* icon)
|
||||
void TabWidget::set_tab_icon(Widget& tab, Gfx::Bitmap const* icon)
|
||||
{
|
||||
for (auto& t : m_tabs) {
|
||||
if (t.widget == &tab) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue