From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- kpresenter/KPrGradient.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kpresenter/KPrGradient.cpp') diff --git a/kpresenter/KPrGradient.cpp b/kpresenter/KPrGradient.cpp index 89728ece7..f00c9d423 100644 --- a/kpresenter/KPrGradient.cpp +++ b/kpresenter/KPrGradient.cpp @@ -19,12 +19,12 @@ */ #include "KPrGradient.h" -#include +#include #include #include #include -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(this)->paint(); -- cgit v1.2.3