From 0dbb4c4ba8044aaf0346706ba735e58b4cfc13f7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 May 2015 18:10:47 +0300 Subject: Improve a bit basiccontainer2. --- src/gui/widgets/basiccontainer2.h | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'src/gui/widgets/basiccontainer2.h') diff --git a/src/gui/widgets/basiccontainer2.h b/src/gui/widgets/basiccontainer2.h index 435f00c43..7243e68d3 100644 --- a/src/gui/widgets/basiccontainer2.h +++ b/src/gui/widgets/basiccontainer2.h @@ -102,7 +102,8 @@ class BasicContainer2: public BasicContainer * @param opaque True if the container should be opaque, false otherwise. * @see isOpaque */ - void setOpaque(bool opaque); + void setOpaque(bool opaque) + { mOpaque = opaque; } /** * Checks if the container is opaque or not. @@ -110,7 +111,8 @@ class BasicContainer2: public BasicContainer * @return True if the container is opaque, false otherwise. * @see setOpaque */ - bool isOpaque() const; + bool isOpaque() const + { return mOpaque; } /** * Adds a widget to the container. @@ -130,24 +132,8 @@ class BasicContainer2: public BasicContainer * @param y The y coordinate for the widget. * @see remove, clear */ - virtual void addXY(Widget* widget, int x, int y); - - /** - * Removes a widget from the Container. - * - * @param widget The widget to remove. - * @throws Exception when the widget has not been added to the - * container. - * @see add, clear - */ - void remove(Widget* widget) override; - - /** - * Clears the container of all widgets. - * - * @see add, remove - */ - void clear() override; + void addXY(Widget* widget, + const int x, const int y); // Inherited from Widget -- cgit v1.2.3-70-g09d2