diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:49:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:49:31 +0300 |
commit | 324dac4ac7d01028b8faa5a1b449ce8da363a390 (patch) | |
tree | 8355114d51885115a3d338efb3f4f3d467d08f52 | |
parent | 386469715bd21da1b7a662761d8266f409813ff6 (diff) | |
download | manaverse-324dac4ac7d01028b8faa5a1b449ce8da363a390.tar.gz manaverse-324dac4ac7d01028b8faa5a1b449ce8da363a390.tar.bz2 manaverse-324dac4ac7d01028b8faa5a1b449ce8da363a390.tar.xz manaverse-324dac4ac7d01028b8faa5a1b449ce8da363a390.zip |
Use CREATEWIDGET macro in worldselectdialog.
-rw-r--r-- | src/gui/windows/worldselectdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/worldselectdialog.cpp b/src/gui/windows/worldselectdialog.cpp index 3fc06293d..58078dfbc 100644 --- a/src/gui/windows/worldselectdialog.cpp +++ b/src/gui/windows/worldselectdialog.cpp @@ -26,6 +26,7 @@ #include "settings.h" #include "gui/widgets/button.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/layout.h" #include "gui/widgets/listbox.h" #include "gui/widgets/scrollarea.h" @@ -47,13 +48,12 @@ WorldSelectDialog::WorldSelectDialog(Worlds worlds) : ActionListener(), KeyListener(), mWorldListModel(new WorldListModel(worlds)), - mWorldList(new ListBox(this, mWorldListModel, "")), + mWorldList(CREATEWIDGETR(ListBox, this, mWorldListModel, "")), // TRANSLATORS: world dialog button mChangeLoginButton(new Button(this, _("Change Login"), "login", this)), // TRANSLATORS: world dialog button mChooseWorld(new Button(this, _("Choose World"), "world", this)) { - mWorldList->postInit(); ScrollArea *const worldsScroll = new ScrollArea(this, mWorldList, getOptionBool("showbackground"), "world_background.xml"); |