summaryrefslogtreecommitdiff
path: root/src/gui/widgets/basiccontainer2.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-27 18:10:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-27 18:10:47 +0300
commit0dbb4c4ba8044aaf0346706ba735e58b4cfc13f7 (patch)
tree90ed4c8b02892caa8642236e9aed767af42581d4 /src/gui/widgets/basiccontainer2.h
parent917d35d6cbea488f07596d0403d0bef8d6413f8a (diff)
downloadplus-0dbb4c4ba8044aaf0346706ba735e58b4cfc13f7.tar.gz
plus-0dbb4c4ba8044aaf0346706ba735e58b4cfc13f7.tar.bz2
plus-0dbb4c4ba8044aaf0346706ba735e58b4cfc13f7.tar.xz
plus-0dbb4c4ba8044aaf0346706ba735e58b4cfc13f7.zip
Improve a bit basiccontainer2.
Diffstat (limited to 'src/gui/widgets/basiccontainer2.h')
-rw-r--r--src/gui/widgets/basiccontainer2.h26
1 files changed, 6 insertions, 20 deletions
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