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 /src/gui/widgets | |
parent | bc0c0e76dad3b1cf960da8b0a2247b50d323c887 (diff) | |
download | plus-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.gz plus-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.bz2 plus-1fcffb98f5b095653f3e643f2edc3829d9848728.tar.xz plus-1fcffb98f5b095653f3e643f2edc3829d9848728.zip |
Use CREATEWIDGET macro in socialtab.
Diffstat (limited to 'src/gui/widgets')
-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"); |