diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-17 21:20:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-17 21:20:31 +0300 |
commit | 9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b (patch) | |
tree | 10333c1d37059db2ced3bcaf3a4d515616b4d815 /src/gui/widgets/tabs/socialnavigationtab.h | |
parent | b59b62516e22d599e0532e6e0f777769ccaadf4a (diff) | |
download | mv-9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b.tar.gz mv-9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b.tar.bz2 mv-9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b.tar.xz mv-9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b.zip |
Simplify social tabs code.
Diffstat (limited to 'src/gui/widgets/tabs/socialnavigationtab.h')
-rw-r--r-- | src/gui/widgets/tabs/socialnavigationtab.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/widgets/tabs/socialnavigationtab.h b/src/gui/widgets/tabs/socialnavigationtab.h index 70c92790c..1d0fbfa33 100644 --- a/src/gui/widgets/tabs/socialnavigationtab.h +++ b/src/gui/widgets/tabs/socialnavigationtab.h @@ -36,13 +36,7 @@ class SocialNavigationTab 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: Navigation tab name in social window. // TRANSLATORS: Should be small |