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/pmspheresweepedit.cpp | 84 +++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'kpovmodeler/pmspheresweepedit.cpp') diff --git a/kpovmodeler/pmspheresweepedit.cpp b/kpovmodeler/pmspheresweepedit.cpp index 582a0e80..9798a304 100644 --- a/kpovmodeler/pmspheresweepedit.cpp +++ b/kpovmodeler/pmspheresweepedit.cpp @@ -23,18 +23,18 @@ #include "pmvectorlistedit.h" #include "pmpart.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include #include #include -PMSphereSweepEdit::PMSphereSweepEdit( QWidget* parent, const char* name ) +PMSphereSweepEdit::PMSphereSweepEdit( TQWidget* parent, const char* name ) : Base( parent, name ) { m_pDisplayedObject = 0; @@ -44,52 +44,52 @@ void PMSphereSweepEdit::createTopWidgets( ) { Base::createTopWidgets( ); - QHBoxLayout* hl = new QHBoxLayout( topLayout( ) ); - hl->addWidget( new QLabel( i18n( "Spline type:" ), this ) ); - m_pSplineType = new QComboBox( false, this ); + TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) ); + hl->addWidget( new TQLabel( i18n( "Spline type:" ), this ) ); + m_pSplineType = new TQComboBox( false, this ); m_pSplineType->insertItem( i18n( "Linear Spline" ) ); m_pSplineType->insertItem( i18n( "B-Spline" ) ); m_pSplineType->insertItem( i18n( "Cubic Spline" ) ); hl->addWidget( m_pSplineType ); hl->addStretch( 1 ); - connect( m_pSplineType, SIGNAL( activated( int ) ), - SLOT( slotTypeChanged( int ) ) ); + connect( m_pSplineType, TQT_SIGNAL( activated( int ) ), + TQT_SLOT( slotTypeChanged( int ) ) ); } void PMSphereSweepEdit::createBottomWidgets( ) { - topLayout( )->addWidget( new QLabel( i18n( "Spheres:" ), this ) ); + topLayout( )->addWidget( new TQLabel( i18n( "Spheres:" ), this ) ); m_pPoints = new PMVectorListEdit( "x", "y", "z", "r", this ); - connect( m_pPoints, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) ); - connect( m_pPoints, SIGNAL( selectionChanged( ) ), - SLOT( slotSelectionChanged( ) ) ); - QHBoxLayout* hl = new QHBoxLayout( topLayout( ) ); + connect( m_pPoints, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) ); + connect( m_pPoints, TQT_SIGNAL( selectionChanged( ) ), + TQT_SLOT( slotSelectionChanged( ) ) ); + TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) ); hl->addWidget( m_pPoints, 2 ); - m_pAddAbove = new QPushButton( this ); + m_pAddAbove = new TQPushButton( this ); m_pAddAbove->setPixmap( SmallIcon( "pmaddpointabove" ) ); - m_pAddBelow = new QPushButton( this ); + m_pAddBelow = new TQPushButton( this ); m_pAddBelow->setPixmap( SmallIcon( "pmaddpoint" ) ); - m_pRemove = new QPushButton( this ); + m_pRemove = new TQPushButton( this ); m_pRemove->setPixmap( SmallIcon( "pmremovepoint" ) ); - connect( m_pAddAbove, SIGNAL( clicked( ) ), SLOT( slotAddPointAbove( ) ) ); - connect( m_pAddBelow, SIGNAL( clicked( ) ), SLOT( slotAddPointBelow( ) ) ); - connect( m_pRemove, SIGNAL( clicked( ) ), SLOT( slotRemovePoint( ) ) ); + connect( m_pAddAbove, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAddPointAbove( ) ) ); + connect( m_pAddBelow, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAddPointBelow( ) ) ); + connect( m_pRemove, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRemovePoint( ) ) ); - QVBoxLayout* bl = new QVBoxLayout( hl ); + TQVBoxLayout* bl = new TQVBoxLayout( hl ); bl->addWidget( m_pAddAbove ); bl->addWidget( m_pAddBelow ); bl->addWidget( m_pRemove ); bl->addStretch( 1 ); - hl = new QHBoxLayout( topLayout( ) ); - hl->addWidget( new QLabel( i18n( "Tolerance" ), this ) ); + hl = new TQHBoxLayout( topLayout( ) ); + hl->addWidget( new TQLabel( i18n( "Tolerance" ), this ) ); m_pTolerance = new PMFloatEdit( this ); m_pTolerance->setValidation( true, 0, false, 0 ); hl->addWidget( m_pTolerance ); - connect( m_pTolerance, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) ); + connect( m_pTolerance, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) ); Base::createBottomWidgets( ); } @@ -118,10 +118,10 @@ void PMSphereSweepEdit::displayObject( PMObject* o ) m_pTolerance->setReadOnly( readOnly ); m_pPoints->setReadOnly( readOnly ); - QValueList points = m_pDisplayedObject->points( ); - QValueList radii = m_pDisplayedObject->radii( ); - QValueListIterator pit = points.begin( ); - QValueListIterator rit = radii.begin( ); + TQValueList points = m_pDisplayedObject->points( ); + TQValueList radii = m_pDisplayedObject->radii( ); + TQValueListIterator pit = points.begin( ); + TQValueListIterator rit = radii.begin( ); for( ; pit != points.end( ) && rit != radii.end( ); ++pit, ++rit ) { ( *pit ).resize( 4 ); @@ -170,9 +170,9 @@ void PMSphereSweepEdit::saveContents( ) { if( m_pDisplayedObject ) { - QValueList points = m_pPoints->vectors( ); - QValueList radii; - QValueListIterator pit = points.begin( ); + TQValueList points = m_pPoints->vectors( ); + TQValueList radii; + TQValueListIterator pit = points.begin( ); for( ; pit != points.end( ); ++pit ) { radii.append( ( *pit )[3] ); @@ -253,12 +253,12 @@ void PMSphereSweepEdit::slotAddPointAbove( ) int index = m_pPoints->currentRow( ); if( index >= 0 ) { - QValueList points = m_pPoints->vectors( ); - QValueListIterator it = points.at( index ); + TQValueList points = m_pPoints->vectors( ); + TQValueListIterator it = points.at( index ); if( it != points.end( ) ) { - QValueListIterator it2 = it; + TQValueListIterator it2 = it; it2--; PMVector v; if( it2 == points.end( ) ) @@ -280,12 +280,12 @@ void PMSphereSweepEdit::slotAddPointBelow( ) int index = m_pPoints->currentRow( ); if( index >= 0 ) { - QValueList points = m_pPoints->vectors( ); - QValueListIterator it = points.at( index ); + TQValueList points = m_pPoints->vectors( ); + TQValueListIterator it = points.at( index ); if( it != points.end( ) ) { - QValueListIterator it2 = it; + TQValueListIterator it2 = it; it2++; PMVector v; if( it2 == points.end( ) ) @@ -309,8 +309,8 @@ void PMSphereSweepEdit::slotRemovePoint( ) if( row >= 0 ) { - QValueList points = m_pPoints->vectors( ); - QValueListIterator it = points.at( row ); + TQValueList points = m_pPoints->vectors( ); + TQValueListIterator it = points.at( row ); if( it != points.end( ) && points.size( ) > 1 ) { -- cgit v1.2.1