summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_autogradient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_autogradient.cc')
-rw-r--r--krita/ui/kis_autogradient.cc38
1 files changed, 19 insertions, 19 deletions
diff --git a/krita/ui/kis_autogradient.cc b/krita/ui/kis_autogradient.cc
index 79b6bb637..86b755f91 100644
--- a/krita/ui/kis_autogradient.cc
+++ b/krita/ui/kis_autogradient.cc
@@ -19,8 +19,8 @@
#include "kis_autogradient.h"
-#include <qpainter.h>
-#include <qcombobox.h>
+#include <tqpainter.h>
+#include <tqcombobox.h>
#include <kcolorbutton.h>
#include <knuminput.h>
@@ -32,23 +32,23 @@
/****************************** KisAutogradient ******************************/
-KisAutogradient::KisAutogradient(QWidget *parent, const char* name, const QString& caption) : KisWdgAutogradient(parent, name)
+KisAutogradient::KisAutogradient(TQWidget *tqparent, const char* name, const TQString& caption) : KisWdgAutogradient(tqparent, name)
{
setCaption(caption);
m_autogradientResource = new KisAutogradientResource();
- m_autogradientResource->createSegment( INTERP_LINEAR, COLOR_INTERP_RGB, 0.0, 1.0, 0.5, Qt::black, Qt::white );
- connect(gradientSlider, SIGNAL( sigSelectedSegment( KisGradientSegment* ) ), SLOT( slotSelectedSegment(KisGradientSegment*) ));
- connect(gradientSlider, SIGNAL( sigChangedSegment(KisGradientSegment*) ), SLOT( slotChangedSegment(KisGradientSegment*) ));
+ m_autogradientResource->createSegment( INTERP_LINEAR, COLOR_INTERP_RGB, 0.0, 1.0, 0.5, TQt::black, TQt::white );
+ connect(gradientSlider, TQT_SIGNAL( sigSelectedSegment( KisGradientSegment* ) ), TQT_SLOT( slotSelectedSegment(KisGradientSegment*) ));
+ connect(gradientSlider, TQT_SIGNAL( sigChangedSegment(KisGradientSegment*) ), TQT_SLOT( slotChangedSegment(KisGradientSegment*) ));
gradientSlider->setGradientResource( m_autogradientResource );
- connect(comboBoxColorInterpolationType, SIGNAL( activated(int) ), SLOT( slotChangedColorInterpolation(int) ));
- connect(comboBoxInterpolationType, SIGNAL( activated(int) ), SLOT( slotChangedInterpolation(int) ));
- connect(leftColorButton, SIGNAL( changed(const QColor&) ), SLOT( slotChangedLeftColor(const QColor&) ));
- connect(rightColorButton, SIGNAL( changed(const QColor&) ), SLOT( slotChangedRightColor(const QColor&) ));
+ connect(comboBoxColorInterpolationType, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotChangedColorInterpolation(int) ));
+ connect(comboBoxInterpolationType, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotChangedInterpolation(int) ));
+ connect(leftColorButton, TQT_SIGNAL( changed(const TQColor&) ), TQT_SLOT( slotChangedLeftColor(const TQColor&) ));
+ connect(rightColorButton, TQT_SIGNAL( changed(const TQColor&) ), TQT_SLOT( slotChangedRightColor(const TQColor&) ));
// intNumInputLeftOpacity->setRange( 0, 100, false);
- connect(intNumInputLeftOpacity, SIGNAL( valueChanged(int) ), SLOT( slotChangedLeftOpacity(int) ));
+ connect(intNumInputLeftOpacity, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( slotChangedLeftOpacity(int) ));
// intNumInputRightOpacity->setRange( 0, 100, false);
- connect(intNumInputRightOpacity, SIGNAL( valueChanged(int) ), SLOT( slotChangedRightOpacity(int) ));
+ connect(intNumInputRightOpacity, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( slotChangedRightOpacity(int) ));
}
@@ -64,10 +64,10 @@ void KisAutogradient::slotSelectedSegment(KisGradientSegment* segment)
comboBoxColorInterpolationType->setCurrentItem( segment->colorInterpolation() );
comboBoxInterpolationType->setCurrentItem( segment->interpolation() );
- int leftOpacity = qRound(segment->startColor().alpha() * 100);
+ int leftOpacity = tqRound(segment->startColor().alpha() * 100);
intNumInputLeftOpacity->setValue( leftOpacity );
- int rightOpacity = qRound(segment->endColor().alpha() * 100);
+ int rightOpacity = tqRound(segment->endColor().alpha() * 100);
intNumInputRightOpacity->setValue( rightOpacity );
paramChanged();
@@ -98,7 +98,7 @@ void KisAutogradient::slotChangedColorInterpolation(int type)
paramChanged();
}
-void KisAutogradient::slotChangedLeftColor( const QColor& color)
+void KisAutogradient::slotChangedLeftColor( const TQColor& color)
{
KisGradientSegment* segment = gradientSlider->selectedSegment();
if(segment)
@@ -108,12 +108,12 @@ void KisAutogradient::slotChangedLeftColor( const QColor& color)
paramChanged();
}
-void KisAutogradient::slotChangedRightColor( const QColor& color)
+void KisAutogradient::slotChangedRightColor( const TQColor& color)
{
KisGradientSegment* segment = gradientSlider->selectedSegment();
if(segment)
segment->setEndColor( Color( color, segment->endColor().alpha() ) );
- gradientSlider->repaint();
+ gradientSlider->tqrepaint();
paramChanged();
}
@@ -123,7 +123,7 @@ void KisAutogradient::slotChangedLeftOpacity( int value )
KisGradientSegment* segment = gradientSlider->selectedSegment();
if(segment)
segment->setStartColor( Color( segment->startColor().color(), (double)value / 100 ) );
- gradientSlider->repaint(false);
+ gradientSlider->tqrepaint(false);
paramChanged();
}
@@ -133,7 +133,7 @@ void KisAutogradient::slotChangedRightOpacity( int value )
KisGradientSegment* segment = gradientSlider->selectedSegment();
if(segment)
segment->setEndColor( Color( segment->endColor().color(), (double)value / 100 ) );
- gradientSlider->repaint(false);
+ gradientSlider->tqrepaint(false);
paramChanged();
}