summaryrefslogtreecommitdiffstats
path: root/config/colorpicker.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-25 20:03:28 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-25 20:03:28 +0100
commit2ee99ab520931c5efe91123c85ba10064a45e95d (patch)
treea367666e410de28d0f258aed77b11e17cafb28e4 /config/colorpicker.cpp
parentcfa36e1a95e82492c17225ff376911abb3688f62 (diff)
downloadtde-style-baghira-2ee99ab520931c5efe91123c85ba10064a45e95d.tar.gz
tde-style-baghira-2ee99ab520931c5efe91123c85ba10064a45e95d.zip
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'config/colorpicker.cpp')
-rw-r--r--config/colorpicker.cpp24
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__;
}