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 /kpresenter/KPrGradient.cpp | |
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 'kpresenter/KPrGradient.cpp')
-rw-r--r-- | kpresenter/KPrGradient.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kpresenter/KPrGradient.cpp b/kpresenter/KPrGradient.cpp index 89728ece..f00c9d42 100644 --- a/kpresenter/KPrGradient.cpp +++ b/kpresenter/KPrGradient.cpp @@ -19,12 +19,12 @@ */ #include "KPrGradient.h" -#include <qpainter.h> +#include <tqpainter.h> #include <kpixmapeffect.h> #include <kdebug.h> #include <KoTextZoomHandler.h> -KPrGradient::KPrGradient( const QColor &_color1, const QColor &_color2, BCType _bcType, +KPrGradient::KPrGradient( const TQColor &_color1, const TQColor &_color2, BCType _bcType, bool _unbalanced, int _xfactor, int _yfactor ) : color1( _color1 ), color2( _color2 ), bcType( _bcType ), m_pixmap(), refCount( 0 ), @@ -34,7 +34,7 @@ KPrGradient::KPrGradient( const QColor &_color1, const QColor &_color2, BCType _ //m_pixmap.resize( _size ); } -void KPrGradient::setParameters(const QColor &c1, const QColor &c2, BCType _type, +void KPrGradient::setParameters(const TQColor &c1, const TQColor &c2, BCType _type, bool _unbalanced, int xf, int yf) { color1=c1; color2=c2; @@ -57,12 +57,12 @@ bool KPrGradient::removeRef() void KPrGradient::paint() { - QPainter painter; + TQPainter painter; switch ( bcType ) { case BCT_PLAIN: painter.begin( &m_pixmap ); - painter.setPen( Qt::NoPen ); + painter.setPen( TQt::NoPen ); painter.setBrush( color1 ); painter.drawRect( m_pixmap.rect() ); @@ -128,7 +128,7 @@ void KPrGradient::paint() m_bDirty = false; } -const QPixmap& KPrGradient::pixmap() const +const TQPixmap& KPrGradient::pixmap() const { if ( m_bDirty ) const_cast<KPrGradient *>(this)->paint(); |