diff options
Diffstat (limited to 'config/colorpicker.cpp')
-rw-r--r-- | config/colorpicker.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/config/colorpicker.cpp b/config/colorpicker.cpp index 263ef0d..e4f2cf9 100644 --- a/config/colorpicker.cpp +++ b/config/colorpicker.cpp @@ -1,16 +1,16 @@ #include "colorpicker.h" -#include <qcolor.h> -#include <qlayout.h> +#include <tqcolor.h> +#include <tqlayout.h> #include <knuminput.h> -ColorPicker::ColorPicker(QWidget* parent, const char* name) : QGroupBox( parent, name) +ColorPicker::ColorPicker(TQWidget* parent, const char* name) : TQGroupBox( parent, name) { setTitle(name); - setColumnLayout(0, Qt::Vertical ); + setColumnLayout(0, TQt::Vertical ); layout()->setSpacing( 6 ); layout()->setMargin( 11 ); - QVBoxLayout *vLayout = new QVBoxLayout(layout()); + TQVBoxLayout *vLayout = new TQVBoxLayout(layout()); red = new KIntNumInput(this, "red"); red->setRange(0, 255, 1, true); @@ -35,10 +35,10 @@ ColorPicker::~ColorPicker() void ColorPicker::emitChange() { - emit colorChanged(QColor(red->value(), green->value(), blue->value())); + emit colorChanged(TQColor(red->value(), green->value(), blue->value())); } -void ColorPicker::setColor(const QColor & color) +void ColorPicker::setColor(const TQColor & color) { red->setValue( color.red() ); green->setValue( color.green() ); @@ -49,24 +49,24 @@ void ColorPicker::setColor(const QColor & color) void ColorPicker::setRed(int r) { red->setValue( r ); - emit colorChanged(QColor(r, green->value(), blue->value())); + emit colorChanged(TQColor(r, green->value(), blue->value())); } void ColorPicker::setGreen(int g) { green->setValue( g ); - emit colorChanged(QColor(red->value(), g, blue->value())); + emit colorChanged(TQColor(red->value(), g, blue->value())); } void ColorPicker::setBlue(int b) { blue->setValue( b ); - emit colorChanged(QColor(red->value(), green->value(), b)); + emit colorChanged(TQColor(red->value(), green->value(), b)); } -QColor & ColorPicker::color() +TQColor & ColorPicker::color() { - color__ = QColor(red->value(), green->value(), blue->value()); + color__ = TQColor(red->value(), green->value(), blue->value()); return color__; } |