summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 23:18:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 23:18:21 +0300
commit1fcffb98f5b095653f3e643f2edc3829d9848728 (patch)
treec34d8cadbd5ce8f86347e5828cd7b1ef8186e3fb /src
parentbc0c0e76dad3b1cf960da8b0a2247b50d323c887 (diff)
downloadmanaverse-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.gz
manaverse-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.bz2
manaverse-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.xz
manaverse-1fcffb98f5b095653f3e643f2edc3829d9848728.zip
Use CREATEWIDGET macro in socialtab.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/tabs/socialtab.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/socialtab.h b/src/gui/widgets/tabs/socialtab.h
index ff3d5472d..97da41df7 100644
--- a/src/gui/widgets/tabs/socialtab.h
+++ b/src/gui/widgets/tabs/socialtab.h
@@ -28,6 +28,7 @@
#include "gui/windows/textdialog.h"
#include "gui/widgets/avatarlistbox.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/tabs/tab.h"
@@ -104,8 +105,7 @@ class SocialTab notfinal : public Tab
void createControls(AvatarListModel *const listModel,
const bool showBackground)
{
- mList = new AvatarListBox(this, listModel);
- mList->postInit();
+ CREATEWIDGETV(mList, AvatarListBox, this, listModel);
mScroll = new ScrollArea(this, mList, showBackground,
"social_background.xml");