diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-19 12:11:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-19 12:17:12 +0300 |
commit | 46fc225f65f7d11348fc9e94feb0cb6484b27cab (patch) | |
tree | f3158ad5b416b0e182bf8168e49b5ba3c2027d7c /src/gui/widgets/widgetgroup.cpp | |
parent | 389f3a580e6641d8486a44f25d3443829f42408f (diff) | |
download | manaplus-46fc225f65f7d11348fc9e94feb0cb6484b27cab.tar.gz manaplus-46fc225f65f7d11348fc9e94feb0cb6484b27cab.tar.bz2 manaplus-46fc225f65f7d11348fc9e94feb0cb6484b27cab.tar.xz manaplus-46fc225f65f7d11348fc9e94feb0cb6484b27cab.zip |
Fix overload virtual function BasicContainer2::add.
Diffstat (limited to 'src/gui/widgets/widgetgroup.cpp')
-rw-r--r-- | src/gui/widgets/widgetgroup.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/widgetgroup.cpp b/src/gui/widgets/widgetgroup.cpp index d54e3074a..d8bfd4d32 100644 --- a/src/gui/widgets/widgetgroup.cpp +++ b/src/gui/widgets/widgetgroup.cpp @@ -50,7 +50,7 @@ void WidgetGroup::addButton(const std::string &restrict text, { widget->setActionEventId(mActionEventId + tag); widget->addActionListener(this); - add(widget, mSpacing); + addWidget(widget, mSpacing); } } @@ -63,7 +63,8 @@ void WidgetGroup::action(const ActionEvent &event) } } -void WidgetGroup::add(Widget *const widget, const int spacing) +void WidgetGroup::addWidget(Widget *const widget, + const int spacing) { if (!widget) return; |