summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/socialguildtab.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-17 21:20:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-17 21:20:31 +0300
commit9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b (patch)
tree10333c1d37059db2ced3bcaf3a4d515616b4d815 /src/gui/widgets/tabs/socialguildtab.h
parentb59b62516e22d599e0532e6e0f777769ccaadf4a (diff)
downloadplus-9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b.tar.gz
plus-9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b.tar.bz2
plus-9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b.tar.xz
plus-9de5161f9d55e4e2ece1653e6cb7decf5b3f0b9b.zip
Simplify social tabs code.
Diffstat (limited to 'src/gui/widgets/tabs/socialguildtab.h')
-rw-r--r--src/gui/widgets/tabs/socialguildtab.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/widgets/tabs/socialguildtab.h b/src/gui/widgets/tabs/socialguildtab.h
index d88387930..4647f5f07 100644
--- a/src/gui/widgets/tabs/socialguildtab.h
+++ b/src/gui/widgets/tabs/socialguildtab.h
@@ -54,13 +54,7 @@ class SocialGuildTab final : public SocialTab,
setSelectedTabColor(&getThemeColor(Theme::GUILD_SOCIAL_TAB_SELECTED),
&getThemeColor(Theme::GUILD_SOCIAL_TAB_SELECTED_OUTLINE));
- mList = new AvatarListBox(this, guild);
- mList->postInit();
- mScroll = new ScrollArea(this, mList, showBackground,
- "social_background.xml");
-
- mScroll->setHorizontalScrollPolicy(ScrollArea::SHOW_AUTO);
- mScroll->setVerticalScrollPolicy(ScrollArea::SHOW_ALWAYS);
+ createControls(guild, showBackground);
}
A_DELETE_COPY(SocialGuildTab)