From 391d9959b3839aac5dcd17f05937c0b95dde3cb4 Mon Sep 17 00:00:00 2001 From: Denis Feklushkin Date: Fri, 10 Nov 2017 13:14:01 +0700 Subject: [PATCH] dirty fix for #510 --- src/dlangui/widgets/widget.d | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/dlangui/widgets/widget.d b/src/dlangui/widgets/widget.d index 21756e6a..b32b3b9c 100644 --- a/src/dlangui/widgets/widget.d +++ b/src/dlangui/widgets/widget.d @@ -570,17 +570,11 @@ public: @property FontRef font() const { return stateStyle.font; } /// returns widget content text (override to support this) - @property dstring text() const { - assert(false, __FUNCTION__~" isn't implemented"); - } + @property dstring text() const { return ""; } /// sets widget content text (override to support this) - @property Widget text(dstring s) { - assert(false, __FUNCTION__~" isn't implemented"); - } + @property Widget text(dstring s) { return this; } /// sets widget content text (override to support this) - @property Widget text(UIString s) { - assert(false, __FUNCTION__~" isn't implemented"); - } + @property Widget text(UIString s) { return this; } /// override to handle font changes protected void handleFontChanged() {}