From 4cb2ff1428582e395abfef77429b8c7c84ff836a Mon Sep 17 00:00:00 2001 From: "Mr.UNIX" Date: Tue, 26 Dec 2023 19:15:57 +0100 Subject: [PATCH] LibGUI: Add set_text(String) method to ProgressBar --- Userland/Libraries/LibGUI/Progressbar.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGUI/Progressbar.h b/Userland/Libraries/LibGUI/Progressbar.h index cd08650e7e..39bbf6c050 100644 --- a/Userland/Libraries/LibGUI/Progressbar.h +++ b/Userland/Libraries/LibGUI/Progressbar.h @@ -30,6 +30,7 @@ public: ByteString text() const { return m_text; } void set_text(ByteString text) { m_text = move(text); } + void set_text(String const& text) { m_text = ByteString(text); } enum Format { NoText,