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 --- karbon/plugins/shadoweffect/vshadowdecorator.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'karbon/plugins/shadoweffect/vshadowdecorator.cc') diff --git a/karbon/plugins/shadoweffect/vshadowdecorator.cc b/karbon/plugins/shadoweffect/vshadowdecorator.cc index 238673ba..e6b2f378 100644 --- a/karbon/plugins/shadoweffect/vshadowdecorator.cc +++ b/karbon/plugins/shadoweffect/vshadowdecorator.cc @@ -26,8 +26,8 @@ #include #include -VShadowDecorator::VShadowDecorator( VObject *object, VObject* parent, int distance, int angle, float opacity ) - : VObject( parent ), m_object( object ), m_distance( distance ), m_angle( angle ), m_opacity( opacity ) +VShadowDecorator::VShadowDecorator( VObject *object, VObject* tqparent, int distance, int angle, float opacity ) + : VObject( tqparent ), m_object( object ), m_distance( distance ), m_angle( angle ), m_opacity( opacity ) { } @@ -64,12 +64,12 @@ VShadowDecorator::draw( VPainter* painter, const KoRect* rect ) const VFill *fill = new VFill( *m_object->fill() ); VStroke *stroke = new VStroke( *m_object->stroke() ); - VColor black( Qt::black ); + VColor black( TQt::black ); black.setOpacity( m_opacity ); if( m_object->fill()->type() != VFill::none ) m_object->fill()->setColor( black ); m_object->stroke()->setColor( black ); - QWMatrix mat = painter->worldMatrix(); + TQWMatrix mat = painter->tqworldMatrix(); painter->setWorldMatrix( mat.translate( shadowDx * painter->zoomFactor(), -shadowDy * painter->zoomFactor()) ); m_object->draw( painter, rect ); m_object->setFill( *fill ); @@ -122,7 +122,7 @@ VShadowDecorator::setState( const VState state ) } void -VShadowDecorator::save( QDomElement& element ) const +VShadowDecorator::save( TQDomElement& element ) const { if( m_state != VObject::deleted ) { @@ -132,12 +132,12 @@ VShadowDecorator::save( QDomElement& element ) const VObject *shadow = m_object->clone(); - VColor black( Qt::black ); + VColor black( TQt::black ); black.setOpacity( m_opacity ); if( shadow->fill()->type() != VFill::none ) shadow->fill()->setColor( black ); shadow->stroke()->setColor( black ); - QWMatrix mat; + TQWMatrix mat; mat.translate( shadowDx, -shadowDy ); VTransformCmd trafo( 0L, mat ); trafo.visit( *shadow ); -- cgit v1.2.1