From 324dac4ac7d01028b8faa5a1b449ce8da363a390 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 18:49:31 +0300 Subject: Use CREATEWIDGET macro in worldselectdialog. --- src/gui/windows/worldselectdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/worldselectdialog.cpp') 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"); -- cgit v1.2.3-70-g09d2