summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_autogradient_resource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/core/kis_autogradient_resource.cc')
-rw-r--r--krita/core/kis_autogradient_resource.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/krita/core/kis_autogradient_resource.cc b/krita/core/kis_autogradient_resource.cc
index f021222d..671e8fc2 100644
--- a/krita/core/kis_autogradient_resource.cc
+++ b/krita/core/kis_autogradient_resource.cc
@@ -25,15 +25,15 @@
#define PREVIEW_HEIGHT 64
-void KisAutogradientResource::createSegment( int interpolation, int colorInterpolation, double startOffset, double endOffset, double middleOffset, QColor left, QColor right )
+void KisAutogradientResource::createSegment( int interpolation, int colorInterpolation, double startOffset, double endOffset, double middleOffset, TQColor left, TQColor right )
{
pushSegment(new KisGradientSegment(interpolation, colorInterpolation, startOffset, middleOffset, endOffset, Color( left, 1 ), Color( right, 1 )));
}
-const QValueVector<double> KisAutogradientResource::getHandlePositions() const
+const TQValueVector<double> KisAutogradientResource::getHandlePositions() const
{
- QValueVector<double> handlePositions;
+ TQValueVector<double> handlePositions;
handlePositions.push_back(m_segments[0]->startOffset());
for (uint i = 0; i < m_segments.count(); i++)
@@ -43,9 +43,9 @@ const QValueVector<double> KisAutogradientResource::getHandlePositions() const
return handlePositions;
}
-const QValueVector<double> KisAutogradientResource::getMiddleHandlePositions() const
+const TQValueVector<double> KisAutogradientResource::getMiddleHandlePositions() const
{
- QValueVector<double> middleHandlePositions;
+ TQValueVector<double> middleHandlePositions;
for (uint i = 0; i < m_segments.count(); i++)
{
@@ -56,7 +56,7 @@ const QValueVector<double> KisAutogradientResource::getMiddleHandlePositions() c
void KisAutogradientResource::moveSegmentStartOffset( KisGradientSegment* segment, double t)
{
- QValueVector<KisGradientSegment*>::iterator it = qFind( m_segments.begin(), m_segments.end(), segment );
+ TQValueVector<KisGradientSegment*>::iterator it = tqFind( m_segments.begin(), m_segments.end(), segment );
if ( it != m_segments.end() )
{
if ( it == m_segments.begin() )
@@ -81,7 +81,7 @@ void KisAutogradientResource::moveSegmentStartOffset( KisGradientSegment* segmen
void KisAutogradientResource::moveSegmentEndOffset( KisGradientSegment* segment, double t)
{
- QValueVector<KisGradientSegment*>::iterator it = qFind( m_segments.begin(), m_segments.end(), segment );
+ TQValueVector<KisGradientSegment*>::iterator it = tqFind( m_segments.begin(), m_segments.end(), segment );
if ( it != m_segments.end() )
{
if ( it+1 == m_segments.end() )
@@ -120,7 +120,7 @@ void KisAutogradientResource::moveSegmentMiddleOffset( KisGradientSegment* segme
void KisAutogradientResource::splitSegment( KisGradientSegment* segment )
{
Q_ASSERT(segment != 0);
- QValueVector<KisGradientSegment*>::iterator it = qFind( m_segments.begin(), m_segments.end(), segment );
+ TQValueVector<KisGradientSegment*>::iterator it = tqFind( m_segments.begin(), m_segments.end(), segment );
if ( it != m_segments.end() )
{
KisGradientSegment* newSegment = new KisGradientSegment(
@@ -140,7 +140,7 @@ void KisAutogradientResource::splitSegment( KisGradientSegment* segment )
void KisAutogradientResource::duplicateSegment( KisGradientSegment* segment )
{
Q_ASSERT(segment != 0);
- QValueVector<KisGradientSegment*>::iterator it = qFind( m_segments.begin(), m_segments.end(), segment );
+ TQValueVector<KisGradientSegment*>::iterator it = tqFind( m_segments.begin(), m_segments.end(), segment );
if ( it != m_segments.end() )
{
double middlePostionPercentage = ( segment->middleOffset() - segment->startOffset() ) / segment->length();
@@ -181,7 +181,7 @@ KisGradientSegment* KisAutogradientResource::removeSegment( KisGradientSegment*
Q_ASSERT(segment != 0);
if( m_segments.count() < 2 )
return 0;
- QValueVector<KisGradientSegment*>::iterator it = qFind( m_segments.begin(), m_segments.end(), segment );
+ TQValueVector<KisGradientSegment*>::iterator it = tqFind( m_segments.begin(), m_segments.end(), segment );
if ( it != m_segments.end() )
{
double middlePostionPercentage;