diff options
Diffstat (limited to 'src/gui/widgets/tabs/socialtab.h')
-rw-r--r-- | src/gui/widgets/tabs/socialtab.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/socialtab.h b/src/gui/widgets/tabs/socialtab.h index 433655c9d..5ba8e9884 100644 --- a/src/gui/widgets/tabs/socialtab.h +++ b/src/gui/widgets/tabs/socialtab.h @@ -24,10 +24,17 @@ #include "gui/windows/socialwindow.h" +#include "gui/widgets/avatarlistbox.h" +#include "gui/widgets/scrollarea.h" + #include "gui/widgets/tabs/tab.h" #include "localconsts.h" +class AvatarListModel; +class ConfirmDialog; +class TextDialog; + class SocialTab : public Tab { public: @@ -93,6 +100,18 @@ class SocialTab : public Tab } } + void createControls(AvatarListModel *const listModel, + const bool showBackground) + { + mList = new AvatarListBox(this, listModel); + mList->postInit(); + mScroll = new ScrollArea(this, mList, showBackground, + "social_background.xml"); + + mScroll->setHorizontalScrollPolicy(ScrollArea::SHOW_AUTO); + mScroll->setVerticalScrollPolicy(ScrollArea::SHOW_ALWAYS); + } + void setCurrent() override final { updateCounter(); |