From 9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 May 2014 21:20:31 +0300 Subject: Simplify social tabs code. --- src/gui/widgets/tabs/socialpickuptab.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/gui/widgets/tabs/socialpickuptab.h') diff --git a/src/gui/widgets/tabs/socialpickuptab.h b/src/gui/widgets/tabs/socialpickuptab.h index 28a83ed0b..ddf9924b1 100644 --- a/src/gui/widgets/tabs/socialpickuptab.h +++ b/src/gui/widgets/tabs/socialpickuptab.h @@ -36,13 +36,7 @@ class SocialPickupTab 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: Pickup filter tab name in social window. Should be small setCaption(_("Pik")); -- cgit v1.2.3-70-g09d2