diff options
Diffstat (limited to 'src/gui/widgets/tabs/socialattacktab.h')
-rw-r--r-- | src/gui/widgets/tabs/socialattacktab.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/widgets/tabs/socialattacktab.h b/src/gui/widgets/tabs/socialattacktab.h index 6c0b6ea68..0f902caaf 100644 --- a/src/gui/widgets/tabs/socialattacktab.h +++ b/src/gui/widgets/tabs/socialattacktab.h @@ -28,6 +28,8 @@ #include "localconsts.h" +class BeingsListModel; + #define addAvatars(mob, str, type) \ {\ ava = new Avatar(str);\ @@ -88,13 +90,7 @@ class SocialAttackTab final : public SocialTab SocialTab(widget), mBeings(new BeingsListModel) { - mList = new AvatarListBox(this, mBeings); - mList->postInit(); - mScroll = new ScrollArea(this, mList, showBackground, - "social_background.xml"); - - mScroll->setHorizontalScrollPolicy(ScrollArea::SHOW_AUTO); - mScroll->setVerticalScrollPolicy(ScrollArea::SHOW_ALWAYS); + createControls(mBeings, showBackground); // TRANSLATORS: Attack filter tab name in social window. // TRANSLATORS: Should be small |