summaryrefslogtreecommitdiffstats
path: root/karbon/core/vlayer.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/core/vlayer.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/core/vlayer.cc')
-rw-r--r--karbon/core/vlayer.cc14
1 files changed, 7 insertions, 7 deletions
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 <qdom.h>
+#include <tqdom.h>
#include <klocale.h>
#include <KoRect.h>
@@ -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 );