mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-27 21:42:53 +00:00
LibGUI+Userland: Port Labels to String
This commit is contained in:
parent
3d53dc8228
commit
91bafc2653
Notes:
sideshowbarker
2024-07-17 08:42:05 +09:00
Author: https://github.com/thankyouverycool
Commit: 91bafc2653
Pull-request: https://github.com/SerenityOS/serenity/pull/18573
92 changed files with 240 additions and 242 deletions
|
@ -239,7 +239,7 @@ void SoundPlayerWidgetAdvancedView::shuffle_mode_changed(Player::ShuffleMode)
|
|||
|
||||
void SoundPlayerWidgetAdvancedView::time_elapsed(int seconds)
|
||||
{
|
||||
m_timestamp_label->set_text(DeprecatedString::formatted("Elapsed: {:02}:{:02}:{:02}", seconds / 3600, seconds / 60, seconds % 60));
|
||||
m_timestamp_label->set_text(String::formatted("Elapsed: {:02}:{:02}:{:02}", seconds / 3600, seconds / 60, seconds % 60).release_value_but_fixme_should_propagate_errors());
|
||||
}
|
||||
|
||||
void SoundPlayerWidgetAdvancedView::file_name_changed(StringView name)
|
||||
|
@ -275,7 +275,7 @@ void SoundPlayerWidgetAdvancedView::sound_buffer_played(FixedArray<Audio::Sample
|
|||
|
||||
void SoundPlayerWidgetAdvancedView::volume_changed(double volume)
|
||||
{
|
||||
m_volume_label->set_text(DeprecatedString::formatted("{}%", static_cast<int>(volume * 100)));
|
||||
m_volume_label->set_text(String::formatted("{}%", static_cast<int>(volume * 100)).release_value_but_fixme_should_propagate_errors());
|
||||
}
|
||||
|
||||
void SoundPlayerWidgetAdvancedView::playlist_loaded(StringView path, bool loaded)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue