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/core/vlayer.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'karbon/core/vlayer.cc') diff --git a/karbon/core/vlayer.cc b/karbon/core/vlayer.cc index f74a3d4b..49c3bc11 100644 --- a/karbon/core/vlayer.cc +++ b/karbon/core/vlayer.cc @@ -17,7 +17,7 @@ * Boston, MA 02110-1301, USA. */ -#include +#include #include #include @@ -35,8 +35,8 @@ #include "vfill.h" #include "vstroke.h" -VLayer::VLayer( VObject* parent, VState state ) - : VGroup( parent, state ) +VLayer::VLayer( VObject* tqparent, VState state ) + : VGroup( tqparent, state ) { setName( "Layer" ); // HACK : vlayer just shouldn't have fill/stroke at all @@ -111,7 +111,7 @@ VLayer::downwards( const VObject& object ) { if( m_objects.getFirst() == &object ) return; - int index = m_objects.find( &object ); + int index = m_objects.tqfind( &object ); bool bLast = m_objects.getLast() == &object; m_objects.remove( index ); @@ -131,11 +131,11 @@ VLayer::sendToBack( const VObject& object ) } void -VLayer::save( QDomElement& element ) const +VLayer::save( TQDomElement& element ) const { if( state() != deleted ) { - QDomElement me = element.ownerDocument().createElement( "LAYER" ); + TQDomElement me = element.ownerDocument().createElement( "LAYER" ); element.appendChild( me ); if( state() == normal || state() == normal_locked || state() == VObject::selected ) @@ -165,7 +165,7 @@ VLayer::saveOasis( KoStore *store, KoXmlWriter *docWriter, KoGenStyles &mainStyl } void -VLayer::load( const QDomElement& element ) +VLayer::load( const TQDomElement& element ) { setState( element.attribute( "visible" ) == 0 ? hidden : normal ); VGroup::load( element ); -- cgit v1.2.1