diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:18:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:18:21 +0300 |
commit | 1fcffb98f5b095653f3e643f2edc3829d9848728 (patch) | |
tree | c34d8cadbd5ce8f86347e5828cd7b1ef8186e3fb | |
parent | bc0c0e76dad3b1cf960da8b0a2247b50d323c887 (diff) | |
download | ManaVerse-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.gz ManaVerse-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.bz2 ManaVerse-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.xz ManaVerse-1fcffb98f5b095653f3e643f2edc3829d9848728.zip |
Use CREATEWIDGET macro in socialtab.
-rw-r--r-- | src/gui/widgets/tabs/socialtab.h | 4 |
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"); |