From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmspheresweep.cpp | 80 +++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'kpovmodeler/pmspheresweep.cpp') diff --git a/kpovmodeler/pmspheresweep.cpp b/kpovmodeler/pmspheresweep.cpp index f65a029e..b19ef173 100644 --- a/kpovmodeler/pmspheresweep.cpp +++ b/kpovmodeler/pmspheresweep.cpp @@ -83,17 +83,17 @@ public: /** * Saves the radii */ - void setRadii( const QValueList& r ) + void setRadii( const TQValueList& r ) { if( !m_bRadiiSaved ) { // Direct assignment does not work with Qt 2.3.x // The list will be changed later in a graphical - // change because QValueList::detach( ) is called + // change because TQValueList::detach( ) is called // too late! // Copy the list by hand. - QValueList::ConstIterator it = r.begin( ); + TQValueList::ConstIterator it = r.begin( ); for( ; it != r.end( ); ++it ) m_radii.append( *it ); @@ -104,7 +104,7 @@ public: /** * Returns the radii */ - QValueList radii( ) const + TQValueList radii( ) const { if( !m_bRadiiSaved ) kdError( PMArea ) << "Radii points not saved in PMSphereSweepMemento::radii\n"; @@ -119,7 +119,7 @@ private: /** * The stored radii */ - QValueList m_radii; + TQValueList m_radii; bool m_bRadiiSaved; }; @@ -151,21 +151,21 @@ PMSphereSweep::~PMSphereSweep( ) { } -QString PMSphereSweep::description( ) const +TQString PMSphereSweep::description( ) const { return i18n( "sphere sweep" ); } -void PMSphereSweep::serialize( QDomElement& e, QDomDocument& doc ) const +void PMSphereSweep::serialize( TQDomElement& e, TQDomDocument& doc ) const { - QDomElement data = doc.createElement( "extra_data" ); - QDomElement p; + TQDomElement data = doc.createElement( "extra_data" ); + TQDomElement p; e.setAttribute( "spline_type", m_splineType ); e.setAttribute( "tolerance", m_tolerance ); - QValueList::ConstIterator it; - QValueList::ConstIterator it2; + TQValueList::ConstIterator it; + TQValueList::ConstIterator it2; for( it = m_points.begin( ), it2 = m_radii.begin( ); it != m_points.end( ) && it2 != m_radii.end( ); ++it, ++it2 ) { @@ -188,23 +188,23 @@ void PMSphereSweep::readAttributes( const PMXMLHelper& h ) m_radii.clear( ); PMVector v( 3 ); - QDomElement e = h.extraData( ); + TQDomElement e = h.extraData( ); if( !e.isNull( ) ) { - QDomNode c = e.firstChild( ); + TQDomNode c = e.firstChild( ); while( !c.isNull( ) ) { if( c.isElement( ) ) { - QDomElement ce = c.toElement( ); + TQDomElement ce = c.toElement( ); if( ce.tagName( ) == "point" ) { - QString str = ce.attribute( "vector" ); + TQString str = ce.attribute( "vector" ); if( !str.isNull( ) ) { v.loadXML( str ); m_points.append( v ); - QString str = ce.attribute( "radius" ); + TQString str = ce.attribute( "radius" ); m_radii.append( str.toDouble( ) ); } } @@ -266,7 +266,7 @@ void PMSphereSweep::setTolerance( double t ) } } -void PMSphereSweep::setPoints( const QValueList& points ) +void PMSphereSweep::setPoints( const TQValueList& points ) { if( m_points != points ) { @@ -278,7 +278,7 @@ void PMSphereSweep::setPoints( const QValueList& points ) } } -void PMSphereSweep::setRadii( const QValueList& radii ) +void PMSphereSweep::setRadii( const TQValueList& radii ) { if( m_radii != radii ) { @@ -290,7 +290,7 @@ void PMSphereSweep::setRadii( const QValueList& radii ) } } -PMDialogEditBase* PMSphereSweep::editWidget( QWidget* parent ) const +PMDialogEditBase* PMSphereSweep::editWidget( TQWidget* parent ) const { return new PMSphereSweepEdit( parent ); } @@ -426,8 +426,8 @@ void PMSphereSweep::createViewStructure( ) void PMSphereSweep::controlPoints( PMControlPointList& list ) { - QValueList::Iterator it; - QValueList::Iterator it2; + TQValueList::Iterator it; + TQValueList::Iterator it2; int i, nr; for( it = m_points.begin( ), it2 = m_radii.begin( ), nr = 1, i = 0; @@ -454,8 +454,8 @@ void PMSphereSweep::controlPoints( PMControlPointList& list ) void PMSphereSweep::controlPointsChanged( PMControlPointList& list ) { PMControlPointListIterator it1( list ); - QValueList::Iterator pit = m_points.begin( ); - QValueList::Iterator rit = m_radii.begin( ); + TQValueList::Iterator pit = m_points.begin( ); + TQValueList::Iterator rit = m_radii.begin( ); int i; PM3DControlPoint* p; PMDistanceControlPoint* r; @@ -513,7 +513,7 @@ void PMSphereSweep::controlPointsChanged( PMControlPointList& list ) } void PMSphereSweep::addObjectActions( const PMControlPointList& /*cp*/, - QPtrList& actions ) + TQPtrList& actions ) { PMObjectAction* a; @@ -545,7 +545,7 @@ void PMSphereSweep::addObjectActions( const PMControlPointList& /*cp*/, void PMSphereSweep::objectActionCalled( const PMObjectAction* action, const PMControlPointList& cp, - const QPtrList& cpViewPosition, + const TQPtrList& cpViewPosition, const PMVector& clickPosition ) { if( action->objectType( ) == s_pMetaObject ) @@ -568,7 +568,7 @@ void PMSphereSweep::objectActionCalled( const PMObjectAction* action, } void PMSphereSweep::splitSegment( const PMControlPointList& /*cp*/, - const QPtrList& cpViewPosition, + const TQPtrList& cpViewPosition, const PMVector& clickPosition ) { // find nearest segment @@ -578,8 +578,8 @@ void PMSphereSweep::splitSegment( const PMControlPointList& /*cp*/, int i, j; PMVector mid( 3 ), dist( 2 ); - QPtrListIterator it1( cpViewPosition ); - QPtrListIterator it2( cpViewPosition ); + TQPtrListIterator it1( cpViewPosition ); + TQPtrListIterator it2( cpViewPosition ); ++it2; for( i = 0; i < nump; i++ ) @@ -618,17 +618,17 @@ void PMSphereSweep::splitSegment( const PMControlPointList& /*cp*/, } // add a new segment - QValueList newPoints = m_points; - QValueList newRadii = m_radii; + TQValueList newPoints = m_points; + TQValueList newRadii = m_radii; - QValueList::Iterator it = newPoints.at( ( unsigned ) ns ); - QValueList::Iterator hit = it; + TQValueList::Iterator it = newPoints.at( ( unsigned ) ns ); + TQValueList::Iterator hit = it; ++it; mid = ( *it + *hit ) / 2; newPoints.insert( it, mid ); - QValueList::Iterator rit = newRadii.at( ( unsigned ) ns ); - QValueList::Iterator rhit = rit; + TQValueList::Iterator rit = newRadii.at( ( unsigned ) ns ); + TQValueList::Iterator rhit = rit; ++rit; newRadii.insert( rit, ( *rit + *rhit ) / 2 ); @@ -637,7 +637,7 @@ void PMSphereSweep::splitSegment( const PMControlPointList& /*cp*/, } void PMSphereSweep::joinSegments( const PMControlPointList& /*cp*/, - const QPtrList& cpViewPosition, + const TQPtrList& cpViewPosition, const PMVector& clickPosition ) { // find nearest point @@ -667,7 +667,7 @@ void PMSphereSweep::joinSegments( const PMControlPointList& /*cp*/, PMVector* p; PMVector dist( 2 ); - QPtrListIterator it1( cpViewPosition ); + TQPtrListIterator it1( cpViewPosition ); for( i = 0; i < nump; i++ ) { @@ -687,10 +687,10 @@ void PMSphereSweep::joinSegments( const PMControlPointList& /*cp*/, } // join two segments - QValueList newPoints = m_points; - QValueList::Iterator it; - QValueList newRadii = m_radii; - QValueList::Iterator rit; + TQValueList newPoints = m_points; + TQValueList::Iterator it; + TQValueList newRadii = m_radii; + TQValueList::Iterator rit; // never remove the first or last point if( ns == 0 ) -- cgit v1.2.1