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 /karbon/visitors/vdrawselection.cc | |
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 'karbon/visitors/vdrawselection.cc')
-rw-r--r-- | karbon/visitors/vdrawselection.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/karbon/visitors/vdrawselection.cc b/karbon/visitors/vdrawselection.cc index ad597027..dbd93247 100644 --- a/karbon/visitors/vdrawselection.cc +++ b/karbon/visitors/vdrawselection.cc @@ -39,7 +39,7 @@ VDrawSelection::visitVPath( VPath &composite ) m_painter->save(); - m_painter->setPen( Qt::SolidLine ); + m_painter->setPen( TQt::SolidLine ); const bool editnodes = composite.state() == VObject::edit && m_nodeediting; @@ -53,10 +53,10 @@ VDrawSelection::visitVPath( VPath &composite ) m_painter->newPath(); if( editnodes ) - m_painter->setRasterOp( Qt::XorROP ); + m_painter->setRasterOp( TQt::XorROP ); - m_painter->setPen( editnodes ? Qt::yellow : Qt::blue ); - m_painter->setBrush( Qt::NoBrush ); + m_painter->setPen( editnodes ? TQt::yellow : TQt::blue ); + m_painter->setBrush( TQt::NoBrush ); for( itr.toFirst(); itr.current(); ++itr ) { @@ -89,7 +89,7 @@ VDrawSelection::visitVPath( VPath &composite ) for( ; jtr.current(); ++jtr ) { if( editnodes ) - m_painter->setRasterOp( Qt::XorROP ); + m_painter->setRasterOp( TQt::XorROP ); VColor color; color.set( 0.5, 0.5, 1.0 ); @@ -100,12 +100,12 @@ VDrawSelection::visitVPath( VPath &composite ) if( !editnodes ) { m_painter->setPen( stroke ); - m_painter->setPen( Qt::blue ); + m_painter->setPen( TQt::blue ); } else - m_painter->setPen( Qt::yellow ); + m_painter->setPen( TQt::yellow ); - m_painter->setBrush( Qt::NoBrush ); + m_painter->setBrush( TQt::NoBrush ); if( ( editnodes || composite.state() == VObject::selected && m_nodeediting ) && jtr.current()->isCurve() ) @@ -124,7 +124,7 @@ VDrawSelection::visitVPath( VPath &composite ) m_painter->strokePath(); // Draw control node2: m_painter->newPath(); - m_painter->setBrush( editnodes ? Qt::yellow : Qt::blue ); + m_painter->setBrush( editnodes ? TQt::yellow : TQt::blue ); m_painter->drawNode( curr->point( curr->degree()-2 ), m_nodeSize ); m_painter->strokePath(); } @@ -138,21 +138,21 @@ VDrawSelection::visitVPath( VPath &composite ) m_painter->strokePath(); // Draw control node1: m_painter->newPath(); - m_painter->setBrush( editnodes ? Qt::yellow : Qt::blue ); + m_painter->setBrush( editnodes ? TQt::yellow : TQt::blue ); m_painter->drawNode( curr->point( 0 ), m_nodeSize ); m_painter->strokePath(); } } // Draw knot. - m_painter->setPen( editnodes ? Qt::yellow : Qt::blue ); + m_painter->setPen( editnodes ? TQt::yellow : TQt::blue ); if( !m_nodeediting ) - m_painter->setBrush( Qt::blue ); + m_painter->setBrush( TQt::blue ); else if( jtr.current()->knotIsSelected() ) - m_painter->setBrush( editnodes ? Qt::yellow : Qt::blue ); + m_painter->setBrush( editnodes ? TQt::yellow : TQt::blue ); else - m_painter->setBrush( Qt::white ); + m_painter->setBrush( TQt::white ); m_painter->drawNode( jtr.current()->knot(), m_nodeSize ); } @@ -162,8 +162,8 @@ VDrawSelection::visitVPath( VPath &composite ) // Draw center node. if( composite.drawCenterNode() && composite.state() == VObject::selected && !m_nodeediting ) { - m_painter->setPen( Qt::NoPen ); - m_painter->setBrush( Qt::blue.light() ); + m_painter->setPen( TQt::NoPen ); + m_painter->setBrush( TQt::blue.light() ); m_painter->drawNode( composite.boundingBox().center(), m_nodeSize ); } |