const added

This commit is contained in:
Denis Feklushkin 2017-10-26 20:44:02 +07:00
parent fcb5565f4c
commit ead1cff962
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class TextWidget : Widget {
protected UIString _text;
/// get widget text
override @property dstring text() { return _text; }
override @property dstring text() const { return _text; }
/// set text to show
override @property Widget text(dstring s) {
_text = s;

View File

@ -1739,7 +1739,7 @@ class WidgetGroup : Widget {
protected WidgetList _children;
/// returns number of children of this widget
@property override int childCount() { return _children.count; }
@property override int childCount() const { return _children.count; }
/// returns child by index
override Widget child(int index) { return _children.get(index); }
/// adds child, returns added item