class Button text() const

This commit is contained in:
Denis Feklushkin 2017-10-27 15:21:15 +07:00
parent 6db5d2cece
commit 925224fdf8
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ class RadioButton : ImageTextButton {
/// Text only button
class Button : Widget {
protected UIString _text;
override @property dstring text() { return _text; }
override @property dstring text() const { return _text; }
override @property Widget text(dstring s) { _text = s; requestLayout(); return this; }
override @property Widget text(UIString s) { _text = s; requestLayout(); return this; }
@property Widget textResource(string s) { _text = s; requestLayout(); return this; }