summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrObjectProperties.cpp
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 /kpresenter/KPrObjectProperties.cpp
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 'kpresenter/KPrObjectProperties.cpp')
-rw-r--r--kpresenter/KPrObjectProperties.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpresenter/KPrObjectProperties.cpp b/kpresenter/KPrObjectProperties.cpp
index ede72009..c0c8d581 100644
--- a/kpresenter/KPrObjectProperties.cpp
+++ b/kpresenter/KPrObjectProperties.cpp
@@ -31,10 +31,10 @@
#include "KPrBezierCurveObject.h"
#include "KPrTextObject.h"
-KPrObjectProperties::KPrObjectProperties( const QPtrList<KPrObject> &objects )
+KPrObjectProperties::KPrObjectProperties( const TQPtrList<KPrObject> &objects )
: m_objects( objects )
, m_flags( 0 )
-, m_pen( KoPen( Qt::black, 1.0, Qt::SolidLine ), L_NORMAL, L_NORMAL )
+, m_pen( KoPen( TQt::black, 1.0, Qt::SolidLine ), L_NORMAL, L_NORMAL )
, m_protectContent( STATE_UNDEF )
{
getProperties( m_objects );
@@ -46,9 +46,9 @@ KPrObjectProperties::~KPrObjectProperties()
}
-void KPrObjectProperties::getProperties( const QPtrList<KPrObject> &objects )
+void KPrObjectProperties::getProperties( const TQPtrList<KPrObject> &objects )
{
- QPtrListIterator<KPrObject> it( objects );
+ TQPtrListIterator<KPrObject> it( objects );
for ( ; it.current() ; ++it )
{
switch ( it.current()->getType() )
@@ -56,7 +56,7 @@ void KPrObjectProperties::getProperties( const QPtrList<KPrObject> &objects )
case OT_LINE:
case OT_FREEHAND:
case OT_POLYLINE:
- case OT_QUADRICBEZIERCURVE:
+ case OT_TQUADRICBEZIERCURVE:
case OT_CUBICBEZIERCURVE:
getPenProperties( it.current() );
getLineEndsProperties( it.current() );
@@ -117,7 +117,7 @@ void KPrObjectProperties::getPenProperties( KPrObject *object )
if ( !( m_flags & PtPenWidth ) )
{
KPrShadowObject *obj = dynamic_cast<KPrShadowObject*>( object );
- if ( obj && obj->getPen().style() != Qt::NoPen )
+ if ( obj && obj->getPen().style() != TQt::NoPen )
{
m_flags |= PtPenWidth;
}
@@ -145,7 +145,7 @@ void KPrObjectProperties::getLineEndsProperties( KPrObject *object )
}
case OT_FREEHAND:
case OT_POLYLINE:
- case OT_QUADRICBEZIERCURVE:
+ case OT_TQUADRICBEZIERCURVE:
case OT_CUBICBEZIERCURVE:
{
KPrPointObject *obj = dynamic_cast<KPrPointObject*>( object );