summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrGradientCollection.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kpresenter/KPrGradientCollection.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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 'kpresenter/KPrGradientCollection.cpp')
-rw-r--r--kpresenter/KPrGradientCollection.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kpresenter/KPrGradientCollection.cpp b/kpresenter/KPrGradientCollection.cpp
index 59dbde2d..5f783ea5 100644
--- a/kpresenter/KPrGradientCollection.cpp
+++ b/kpresenter/KPrGradientCollection.cpp
@@ -20,10 +20,10 @@
#include "KPrGradientCollection.h"
#include "KPrGradient.h"
-#include <qstring.h>
+#include <tqstring.h>
-const QPixmap& KPrGradientCollection::getGradient( const QColor &_color1, const QColor &_color2,
- BCType _bcType, const QSize &_size,
+const TQPixmap& KPrGradientCollection::getGradient( const TQColor &_color1, const TQColor &_color2,
+ BCType _bcType, const TQSize &_size,
bool _unbalanced, int _xfactor, int _yfactor, bool addref )
{
KPrGradient *cachedGradient = inGradientList( _color1, _color2, _bcType, _size, _unbalanced, _xfactor, _yfactor );
@@ -45,8 +45,8 @@ const QPixmap& KPrGradientCollection::getGradient( const QColor &_color1, const
}
}
-void KPrGradientCollection::removeRef( const QColor &_color1, const QColor &_color2,
- BCType _bcType, const QSize &_size,
+void KPrGradientCollection::removeRef( const TQColor &_color1, const TQColor &_color2,
+ BCType _bcType, const TQSize &_size,
bool _unbalanced, int _xfactor, int _yfactor)
{
KPrGradient* cachedGradient = inGradientList( _color1, _color2, _bcType, _size, _unbalanced, _xfactor, _yfactor );
@@ -56,11 +56,11 @@ void KPrGradientCollection::removeRef( const QColor &_color1, const QColor &_col
}
}
-KPrGradient* KPrGradientCollection::inGradientList( const QColor &_color1, const QColor &_color2,
- BCType _bcType, const QSize &_size,
+KPrGradient* KPrGradientCollection::inGradientList( const TQColor &_color1, const TQColor &_color2,
+ BCType _bcType, const TQSize &_size,
bool _unbalanced, int _xfactor, int _yfactor ) const
{
- QPtrListIterator<KPrGradient> it( gradientList );
+ TQPtrListIterator<KPrGradient> it( gradientList );
for ( ; it.current() ; ++it ) {
KPrGradient *kpgradient = it.current();
if ( kpgradient->getColor1() == _color1 && kpgradient->getColor2() == _color2 &&