diff options
author | MarianoGNU <marianognu.easyrpg@gmail.com> | 2015-10-19 17:46:13 -0300 |
---|---|---|
committer | MarianoGNU <marianognu.easyrpg@gmail.com> | 2015-10-19 17:46:13 -0300 |
commit | 6df7d923797908ecf38684c0008c0e4b6475d884 (patch) | |
tree | c5751c64cf09a701f26db1dc86a7e2f64d06f44a /scene/gui | |
parent | ede0cf20bb1a41b316a39c320ad86c76d41ba9c2 (diff) |
Fix ButtonGroup broken layout
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/button_group.cpp | 2 | ||||
-rw-r--r-- | scene/gui/button_group.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/button_group.cpp b/scene/gui/button_group.cpp index 8d1fa80b84..c92d7f2696 100644 --- a/scene/gui/button_group.cpp +++ b/scene/gui/button_group.cpp @@ -155,6 +155,6 @@ void ButtonGroup::_bind_methods() { } -ButtonGroup::ButtonGroup() +ButtonGroup::ButtonGroup() : BoxContainer(true) { } diff --git a/scene/gui/button_group.h b/scene/gui/button_group.h index 24edf94994..74e847e937 100644 --- a/scene/gui/button_group.h +++ b/scene/gui/button_group.h @@ -29,14 +29,14 @@ #ifndef BUTTON_GROUP_H #define BUTTON_GROUP_H -#include "scene/gui/control.h" +#include "scene/gui/box_container.h" class BaseButton; -class ButtonGroup : public Control { +class ButtonGroup : public BoxContainer { - OBJ_TYPE(ButtonGroup,Control); + OBJ_TYPE(ButtonGroup,BoxContainer); Set<BaseButton*> buttons; |