From 4d21e9d3403caba94266312171acd8ecb7e4c82b Mon Sep 17 00:00:00 2001 From: aferust Date: Mon, 13 Jan 2020 18:57:49 +0300 Subject: [PATCH] fix my stupitidy --- src/dlangui/widgets/editors.d | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index 4cc7b9c3..56ca9e98 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -2531,7 +2531,6 @@ class EditLine : EditWidgetBase { // SpinCtrl private { import std.ascii; - alias _ui = UIString.fromRaw; } class SpinCtrl : HorizontalLayout { @@ -2556,12 +2555,12 @@ class SpinCtrl : HorizontalLayout { butDown.enabled = status; } - this(int min, int max, int initialVal = 0, string labelText = null){ + this(int min, int max, int initialVal = 0, dstring labelText = null){ this.min = min; this.max = max; if(labelText !is null){ - label = new TextWidget("label", _ui(labelText)); + label = new TextWidget("label", labelText); addChild(label); } @@ -2625,14 +2624,14 @@ class SpinCtrl : HorizontalLayout { butUp.click = delegate(Widget w) { immutable val = linEdit.text.to!int; if(val < max ) - linEdit.text = (val + 1).to!string._ui; + linEdit.text = (val + 1).to!dstring; return true; }; butDown.click = delegate(Widget w) { immutable val = linEdit.text.to!int; if(val > min ) - linEdit.text = (val - 1).to!string._ui; + linEdit.text = (val - 1).to!dstring; return true; };