From 0bcc82648c49db05980e879a13baba2c76264bd4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 May 2015 17:55:41 +0300 Subject: Add safeDraw method into progressbar. --- src/gui/widgets/progressbar.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/progressbar.h') diff --git a/src/gui/widgets/progressbar.h b/src/gui/widgets/progressbar.h index 2a379a998..053710ae8 100644 --- a/src/gui/widgets/progressbar.h +++ b/src/gui/widgets/progressbar.h @@ -73,6 +73,8 @@ class ProgressBar final : public Widget, */ void draw(Graphics *graphics) override final; + void safeDraw(Graphics *graphics) override final; + /** * Sets the current progress. */ @@ -127,11 +129,6 @@ class ProgressBar final : public Widget, void setSmoothColorChange(bool smoothColorChange) { mSmoothColorChange = smoothColorChange; } - /** - * Renders a progressbar with the given properties. - */ - void render(Graphics *graphics); - void widgetResized(const Event &event) override final; void widgetMoved(const Event &event) override final; -- cgit v1.2.3-70-g09d2