summaryrefslogtreecommitdiffstats
path: root/lib/kopainter/ko_hsv_widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kopainter/ko_hsv_widget.cc')
-rw-r--r--lib/kopainter/ko_hsv_widget.cc80
1 files changed, 40 insertions, 40 deletions
diff --git a/lib/kopainter/ko_hsv_widget.cc b/lib/kopainter/ko_hsv_widget.cc
index 3670b5d9..1633fbc8 100644
--- a/lib/kopainter/ko_hsv_widget.cc
+++ b/lib/kopainter/ko_hsv_widget.cc
@@ -21,11 +21,11 @@
#include "ko_color_wheel.h"
#include <kselect.h>
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qspinbox.h>
-#include <qtooltip.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqspinbox.h>
+#include <tqtooltip.h>
#include <koFrameButton.h>
#include <koColorSlider.h>
#include <kcolordialog.h>
@@ -34,42 +34,42 @@
#include <kdebug.h>
#include <klocale.h>
-KoHSVWidget::KoHSVWidget(QWidget *parent, const char *name) : super(parent, name)
+KoHSVWidget::KoHSVWidget(TQWidget *tqparent, const char *name) : super(tqparent, name)
{
m_ColorButton = new KDualColorButton(this);
- m_ColorButton -> setFixedSize(m_ColorButton->sizeHint());
+ m_ColorButton -> setFixedSize(m_ColorButton->tqsizeHint());
- QGridLayout *mGrid = new QGridLayout(this, 5, 7, 5, 2);
+ TQGridLayout *mGrid = new TQGridLayout(this, 5, 7, 5, 2);
m_colorwheel = new KoColorWheel(this);
m_colorwheel->setFixedSize( 120, 120);
m_VSelector = new KValueSelector(Qt::Vertical, this);
m_VSelector-> setFixedSize( 30, 120);
/* setup slider labels */
- mHLabel = new QLabel("H:", this);
+ mHLabel = new TQLabel("H:", this);
mHLabel->setFixedSize(12, 20);
- mSLabel = new QLabel("S:", this);
+ mSLabel = new TQLabel("S:", this);
mSLabel->setFixedSize(12, 20);
- mVLabel = new QLabel("V:", this);
+ mVLabel = new TQLabel("V:", this);
mVLabel->setFixedSize(12, 20);
/* setup spin box */
- mHIn = new QSpinBox(0, 359, 1, this);
+ mHIn = new TQSpinBox(0, 359, 1, this);
mHIn->setFixedSize(50, 20);
- mHIn->setFocusPolicy( QWidget::ClickFocus );
- QToolTip::add( mHIn, i18n( "Hue" ) );
+ mHIn->setFocusPolicy( TQ_ClickFocus );
+ TQToolTip::add( mHIn, i18n( "Hue" ) );
- mSIn = new QSpinBox(0, 255, 1, this);
+ mSIn = new TQSpinBox(0, 255, 1, this);
mSIn->setFixedSize(50, 20);
- mSIn->setFocusPolicy( QWidget::ClickFocus );
- QToolTip::add( mSIn, i18n( "Saturation" ) );
+ mSIn->setFocusPolicy( TQ_ClickFocus );
+ TQToolTip::add( mSIn, i18n( "Saturation" ) );
- mVIn = new QSpinBox(0, 255, 1, this);
+ mVIn = new TQSpinBox(0, 255, 1, this);
mVIn->setFixedSize(50, 20);
- mVIn->setFocusPolicy( QWidget::ClickFocus );
- QToolTip::add( mVIn, i18n( "Value (brightness)" ) );
+ mVIn->setFocusPolicy( TQ_ClickFocus );
+ TQToolTip::add( mVIn, i18n( "Value (brightness)" ) );
- mGrid->addMultiCellWidget(m_ColorButton, 0, 0, 0, 1, Qt::AlignTop);
+ mGrid->addMultiCellWidget(m_ColorButton, 0, 0, 0, 1, TQt::AlignTop);
mGrid->addWidget(mHLabel, 1, 0);
mGrid->addWidget(mSLabel, 2, 0);
@@ -84,22 +84,22 @@ KoHSVWidget::KoHSVWidget(QWidget *parent, const char *name) : super(parent, name
mGrid->addMultiCellWidget(m_VSelector, 0, 3, 5, 5);
- connect(m_ColorButton, SIGNAL(fgChanged(const QColor &)), this, SLOT(slotFGColorSelected(const QColor &)));
- connect(m_ColorButton, SIGNAL(bgChanged(const QColor &)), this, SLOT(slotBGColorSelected(const QColor &)));
- connect(m_ColorButton, SIGNAL(currentChanged(KDualColorButton::DualColor)), this, SLOT(currentChanged(KDualColorButton::DualColor)));
+ connect(m_ColorButton, TQT_SIGNAL(fgChanged(const TQColor &)), this, TQT_SLOT(slotFGColorSelected(const TQColor &)));
+ connect(m_ColorButton, TQT_SIGNAL(bgChanged(const TQColor &)), this, TQT_SLOT(slotBGColorSelected(const TQColor &)));
+ connect(m_ColorButton, TQT_SIGNAL(currentChanged(KDualColorButton::DualColor)), this, TQT_SLOT(currentChanged(KDualColorButton::DualColor)));
- connect(m_VSelector, SIGNAL(valueChanged(int)), this, SLOT(slotVChanged(int)));
- connect(m_colorwheel, SIGNAL(valueChanged(const KoColor&)), this, SLOT(slotWheelChanged(const KoColor&)));
+ connect(m_VSelector, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotVChanged(int)));
+ connect(m_colorwheel, TQT_SIGNAL(valueChanged(const KoColor&)), this, TQT_SLOT(slotWheelChanged(const KoColor&)));
/* connect spin box */
- connect(mHIn, SIGNAL(valueChanged(int)), this, SLOT(slotHChanged(int)));
- connect(mSIn, SIGNAL(valueChanged(int)), this, SLOT(slotSChanged(int)));
- connect(mVIn, SIGNAL(valueChanged(int)), this, SLOT(slotVChanged(int)));
+ connect(mHIn, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotHChanged(int)));
+ connect(mSIn, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSChanged(int)));
+ connect(mVIn, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotVChanged(int)));
- //setFixedSize(mGrid -> minimumSize());
+ //setFixedSize(mGrid -> tqminimumSize());
m_autovalue = true; // So on the initial selection of h or v, s gets set to 255.
- update(Qt::black, Qt::white);
+ update(TQt::black, TQt::white);
}
void KoHSVWidget::slotHChanged(int h)
@@ -162,7 +162,7 @@ void KoHSVWidget::slotWheelChanged(const KoColor& c)
}
-void KoHSVWidget::setFgColor(const QColor & c)
+void KoHSVWidget::setFgColor(const TQColor & c)
{
//kdDebug() << "setFGColor " << c << endl;
blockSignals(true);
@@ -170,7 +170,7 @@ void KoHSVWidget::setFgColor(const QColor & c)
blockSignals(false);
}
-void KoHSVWidget::setBgColor(const QColor & c)
+void KoHSVWidget::setBgColor(const TQColor & c)
{
//kdDebug() << "setBgColor " << c << endl;
blockSignals(true);
@@ -181,9 +181,9 @@ void KoHSVWidget::setBgColor(const QColor & c)
void KoHSVWidget::changedFgColor()
{
//kdDebug() << "ChangedFgColor\n";
- disconnect(m_ColorButton, SIGNAL(fgChanged(const QColor &)), this, SLOT(slotFGColorSelected(const QColor &)));
+ disconnect(m_ColorButton, TQT_SIGNAL(fgChanged(const TQColor &)), this, TQT_SLOT(slotFGColorSelected(const TQColor &)));
m_ColorButton->setForeground( m_fgColor.color() );
- connect(m_ColorButton, SIGNAL(fgChanged(const QColor &)), this, SLOT(slotFGColorSelected(const QColor &)));
+ connect(m_ColorButton, TQT_SIGNAL(fgChanged(const TQColor &)), this, TQT_SLOT(slotFGColorSelected(const TQColor &)));
update( m_fgColor, m_bgColor);
@@ -193,9 +193,9 @@ void KoHSVWidget::changedFgColor()
void KoHSVWidget::changedBgColor()
{
//kdDebug() << "changedBgColor()\n";
- disconnect(m_ColorButton, SIGNAL(bgChanged(const QColor &)), this, SLOT(slotBGColorSelected(const QColor &)));
+ disconnect(m_ColorButton, TQT_SIGNAL(bgChanged(const TQColor &)), this, TQT_SLOT(slotBGColorSelected(const TQColor &)));
m_ColorButton->setBackground( m_bgColor.color() );
- connect(m_ColorButton, SIGNAL(bgChanged(const QColor &)), this, SLOT(slotBGColorSelected(const QColor &)));
+ connect(m_ColorButton, TQT_SIGNAL(bgChanged(const TQColor &)), this, TQT_SLOT(slotBGColorSelected(const TQColor &)));
update(m_fgColor, m_bgColor );
@@ -236,11 +236,11 @@ void KoHSVWidget::update(const KoColor & fgColor, const KoColor & bgColor)
mSIn->blockSignals(false);
mVIn->blockSignals(false);
m_VSelector->blockSignals(false);
- m_VSelector->repaint(false);
+ m_VSelector->tqrepaint(false);
m_colorwheel->blockSignals(false);
}
-void KoHSVWidget::slotFGColorSelected(const QColor& c)
+void KoHSVWidget::slotFGColorSelected(const TQColor& c)
{
//kdDebug() << "slotFGColorSelected " << c << endl;
m_fgColor = KoColor(c);
@@ -248,7 +248,7 @@ void KoHSVWidget::slotFGColorSelected(const QColor& c)
changedFgColor();
}
-void KoHSVWidget::slotBGColorSelected(const QColor& c)
+void KoHSVWidget::slotBGColorSelected(const TQColor& c)
{
//kdDebug() << "slotBGColorSelected()" << c << endl;
m_bgColor = KoColor(c);