summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 23:11:16 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 23:11:16 +0300
commit636fd1ec2cca2a69538ee37a768752ed4236ca42 (patch)
treeb374a915625b59d8c59d9fec4ba5b434f061ae3d /src/gui/widgets
parentf191ac17ec9dc35342463202f03ee5c6f2a71ee3 (diff)
downloadplus-636fd1ec2cca2a69538ee37a768752ed4236ca42.tar.gz
plus-636fd1ec2cca2a69538ee37a768752ed4236ca42.tar.bz2
plus-636fd1ec2cca2a69538ee37a768752ed4236ca42.tar.xz
plus-636fd1ec2cca2a69538ee37a768752ed4236ca42.zip
Use CREATEWIDGET macro in setup_colors.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabs/setup_colors.cpp5
1 files changed, 2 insertions, 3 deletions
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);