summaryrefslogtreecommitdiff
path: root/src/gui/setup_colors.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-08 10:30:08 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-08 10:45:38 +0200
commitd90dffbf4240650cf95f3dddf2273cb92d0cc39d (patch)
treea8f2fa7b464ce355299689412da7eb2f6b3b16bd /src/gui/setup_colors.cpp
parenta16629925147248c01ee7d967c38fdeb65d55def (diff)
downloadMana-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.gz
Mana-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.bz2
Mana-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.xz
Mana-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.zip
Got rid of the non-functional TextFieldListener
Pointed out by Jaxad0127. We might want to enable its intended functionality in a different way later.
Diffstat (limited to 'src/gui/setup_colors.cpp')
-rw-r--r--src/gui/setup_colors.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/setup_colors.cpp b/src/gui/setup_colors.cpp
index 352338e9..86184eab 100644
--- a/src/gui/setup_colors.cpp
+++ b/src/gui/setup_colors.cpp
@@ -31,6 +31,7 @@
#include "gui/widgets/listbox.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/slider.h"
+#include "gui/widgets/textfield.h"
#include "gui/widgets/textpreview.h"
#include "configuration.h"
@@ -96,7 +97,6 @@ Setup_Colors::Setup_Colors() :
mGradDelayText->setWidth(40);
mGradDelayText->setRange(20, 100);
mGradDelayText->setNumeric(true);
- mGradDelayText->addListener(this);
mGradDelayText->setEnabled(false);
mGradDelaySlider = new Slider(20, 100);
@@ -112,7 +112,6 @@ Setup_Colors::Setup_Colors() :
mRedText->setWidth(40);
mRedText->setRange(0, 255);
mRedText->setNumeric(true);
- mRedText->addListener(this);
mRedText->setEnabled(false);
mRedSlider = new Slider(0, 255);
@@ -128,7 +127,6 @@ Setup_Colors::Setup_Colors() :
mGreenText->setWidth(40);
mGreenText->setRange(0, 255);
mGreenText->setNumeric(true);
- mGreenText->addListener(this);
mGreenText->setEnabled(false);
mGreenSlider = new Slider(0, 255);
@@ -144,7 +142,6 @@ Setup_Colors::Setup_Colors() :
mBlueText->setWidth(40);
mBlueText->setRange(0, 255);
mBlueText->setNumeric(true);
- mBlueText->addListener(this);
mBlueText->setEnabled(false);
mBlueSlider = new Slider(0, 255);
@@ -407,6 +404,7 @@ void Setup_Colors::cancel()
setEntry(mBlueSlider, mBlueText, col->b);
}
+#if 0
void Setup_Colors::listen(const TextField *tf)
{
if (tf == mGradDelayText)
@@ -420,6 +418,7 @@ void Setup_Colors::listen(const TextField *tf)
updateColor();
}
+#endif
void Setup_Colors::updateGradType()
{