mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibGUI+Userland: Port Labels to String
This commit is contained in:
parent
3d53dc8228
commit
91bafc2653
92 changed files with 240 additions and 242 deletions
|
@ -92,19 +92,19 @@ void MouseWidget::reset_default_values()
|
|||
|
||||
void MouseWidget::update_speed_label()
|
||||
{
|
||||
m_speed_label->set_text(DeprecatedString::formatted("{} %", m_speed_slider->value()));
|
||||
m_speed_label->set_text(String::formatted("{} %", m_speed_slider->value()).release_value_but_fixme_should_propagate_errors());
|
||||
}
|
||||
|
||||
void MouseWidget::update_double_click_speed_label()
|
||||
{
|
||||
m_double_click_speed_label->set_text(DeprecatedString::formatted("{} ms", m_double_click_speed_slider->value()));
|
||||
m_double_click_speed_label->set_text(String::formatted("{} ms", m_double_click_speed_slider->value()).release_value_but_fixme_should_propagate_errors());
|
||||
}
|
||||
|
||||
void MouseWidget::update_switch_buttons_image_label()
|
||||
{
|
||||
if (m_switch_buttons_checkbox->is_checked()) {
|
||||
m_switch_buttons_image_label->set_icon_from_path("/res/graphics/mouse-button-right.png");
|
||||
m_switch_buttons_image_label->set_icon_from_path("/res/graphics/mouse-button-right.png"sv);
|
||||
} else {
|
||||
m_switch_buttons_image_label->set_icon_from_path("/res/graphics/mouse-button-left.png");
|
||||
m_switch_buttons_image_label->set_icon_from_path("/res/graphics/mouse-button-left.png"sv);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue