summaryrefslogtreecommitdiffstats
path: root/karbon/plugins/shadoweffect/vshadowdecorator.cc
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 /karbon/plugins/shadoweffect/vshadowdecorator.cc
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 'karbon/plugins/shadoweffect/vshadowdecorator.cc')
-rw-r--r--karbon/plugins/shadoweffect/vshadowdecorator.cc14
1 files changed, 7 insertions, 7 deletions
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 <core/vselection.h>
#include <commands/vtransformcmd.h>
-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 );