Applications: Remove usages of deprecated implicit conversions

These deprecated conversions are currently in place to make the system
compile, but they are to be removed soon. This prepares that.
This commit is contained in:
FrHun 2022-06-12 22:35:17 +02:00 committed by Sam Atkins
commit 8dd08d47f1
Notes: sideshowbarker 2024-07-17 09:55:02 +09:00
9 changed files with 14 additions and 16 deletions

View file

@ -178,7 +178,7 @@ void ClockWidget::paint_event(GUI::PaintEvent& event)
Gfx::Font const& font = Gfx::FontDatabase::default_font();
int const frame_width = frame_thickness();
int const ideal_width = m_time_width;
int const widget_width = max_width();
int const widget_width = max_width().as_int();
int const translation_x = (widget_width - ideal_width) / 2 - frame_width;
painter.draw_text(frame_inner_rect().translated(translation_x, frame_width), time_text, font, Gfx::TextAlignment::CenterLeft, palette().window_text());