From 636fd1ec2cca2a69538ee37a768752ed4236ca42 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 23:11:16 +0300 Subject: Use CREATEWIDGET macro in setup_colors. --- src/gui/widgets/tabs/setup_colors.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp index d5486c538..6581959b6 100644 --- a/src/gui/widgets/tabs/setup_colors.cpp +++ b/src/gui/widgets/tabs/setup_colors.cpp @@ -28,6 +28,7 @@ #include "gui/widgets/browserbox.h" #include "gui/widgets/containerplacer.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/label.h" #include "gui/widgets/layouthelper.h" #include "gui/widgets/listbox.h" @@ -51,7 +52,7 @@ const char *const Setup_Colors::rawmsg = Setup_Colors::Setup_Colors(const Widget2 *const widget) : SetupTab(widget), SelectionListener(), - mColorBox(new ListBox(this, userPalette, "")), + mColorBox(CREATEWIDGETR(ListBox, this, userPalette, "")), mScroll(new ScrollArea(this, mColorBox, true, "setup_colors_background.xml")), mPreview(new BrowserBox(this, BrowserBox::AUTO_WRAP, true, @@ -81,8 +82,6 @@ Setup_Colors::Setup_Colors(const Widget2 *const widget) : mBlueSlider(new Slider(this, 0.0, 255.0, 1.0)), mBlueText(new TextField(this)) { - mColorBox->postInit(); - // TRANSLATORS: settings colors tab name setName(_("Colors")); mColorBox->addSelectionListener(this); -- cgit v1.2.3-70-g09d2