diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /krita/core/kis_autogradient_resource.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krita/core/kis_autogradient_resource.cc')
-rw-r--r-- | krita/core/kis_autogradient_resource.cc | 20 |
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; |