summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/ProgressBar.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-20 12:29:40 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-20 12:29:40 +0100
commitde08e7b8c90e2eba14e3ed6e05355f1a81f61298 (patch)
tree48e3c1f2677bd53d7d1fb7d92e63478197069889 /Libraries/LibGUI/ProgressBar.h
parent92afdd0c869d9943836492929c8146aa071289f7 (diff)
downloadserenity-de08e7b8c90e2eba14e3ed6e05355f1a81f61298.zip
LibGUI: Rename ProgressBar property caption => text and expose to GML
Diffstat (limited to 'Libraries/LibGUI/ProgressBar.h')
-rw-r--r--Libraries/LibGUI/ProgressBar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/ProgressBar.h b/Libraries/LibGUI/ProgressBar.h
index 9ba6f21297..9c9fddacd7 100644
--- a/Libraries/LibGUI/ProgressBar.h
+++ b/Libraries/LibGUI/ProgressBar.h
@@ -44,8 +44,8 @@ public:
int min() const { return m_min; }
int max() const { return m_max; }
- String caption() const { return m_caption; }
- void set_caption(const StringView& caption) { m_caption = caption; }
+ String text() const { return m_text; }
+ void set_text(String text) { m_text = move(text); }
enum Format {
NoText,
@@ -65,7 +65,7 @@ private:
int m_min { 0 };
int m_max { 100 };
int m_value { 0 };
- String m_caption;
+ String m_text;
};
}