diff options
Diffstat (limited to 'Userland/Applications/KeyboardMapper')
-rw-r--r-- | Userland/Applications/KeyboardMapper/KeyButton.cpp | 6 | ||||
-rw-r--r-- | Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Applications/KeyboardMapper/KeyButton.cpp b/Userland/Applications/KeyboardMapper/KeyButton.cpp index d5417d88d5..c444a3df6b 100644 --- a/Userland/Applications/KeyboardMapper/KeyButton.cpp +++ b/Userland/Applications/KeyboardMapper/KeyButton.cpp @@ -38,13 +38,13 @@ void KeyButton::paint_event(GUI::PaintEvent& event) painter.draw_rect(key_cap_face_border_rect, Color::from_rgb(0x8C7272), false); painter.fill_rect(key_cap_face_rect, face_color); - if (text().is_empty() || text().starts_with('\0')) + if (text_deprecated().is_empty() || text_deprecated().starts_with('\0')) return; - Gfx::IntRect text_rect { 0, 0, static_cast<int>(ceilf(font.width(text()))), font.glyph_height() }; + Gfx::IntRect text_rect { 0, 0, static_cast<int>(ceilf(font.width(text_deprecated()))), font.glyph_height() }; text_rect.align_within(key_cap_face_rect, Gfx::TextAlignment::Center); - painter.draw_text(text_rect, text(), font, Gfx::TextAlignment::Center, Color::Black, Gfx::TextElision::Right); + painter.draw_text(text_rect, text_deprecated(), font, Gfx::TextAlignment::Center, Color::Black, Gfx::TextElision::Right); if (is_focused()) painter.draw_rect(text_rect.inflated(6, 4), palette().focus_outline()); } diff --git a/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp b/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp index 9d97082a3b..85bc04b8ce 100644 --- a/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp +++ b/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp @@ -52,7 +52,7 @@ void KeyboardMapperWidget::create_frame() auto& tmp_button = main_widget.add<KeyButton>(); tmp_button.set_relative_rect(rect); - tmp_button.set_text(keys[i].name); + tmp_button.set_text_deprecated(keys[i].name); tmp_button.set_enabled(keys[i].enabled); tmp_button.on_click = [this, &tmp_button]() { @@ -64,7 +64,7 @@ void KeyboardMapperWidget::create_frame() auto index = keys[i].map_index; VERIFY(index > 0); - tmp_button.set_text(value); + tmp_button.set_text_deprecated(value); u32* map = map_from_name(m_current_map_name); if (value.length() == 0) @@ -248,7 +248,7 @@ void KeyboardMapperWidget::set_current_map(const DeprecatedString current_map) StringBuilder sb; sb.append_code_point(map[index]); - m_keys.at(k)->set_text(sb.to_deprecated_string()); + m_keys.at(k)->set_text_deprecated(sb.to_deprecated_string()); } this->update(); |