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/pmtexturemapedit.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kpovmodeler/pmtexturemapedit.cpp') diff --git a/kpovmodeler/pmtexturemapedit.cpp b/kpovmodeler/pmtexturemapedit.cpp index 6faf4376..2efa7708 100644 --- a/kpovmodeler/pmtexturemapedit.cpp +++ b/kpovmodeler/pmtexturemapedit.cpp @@ -20,13 +20,13 @@ #include "pmtexturemap.h" #include "pmlineedits.h" -#include -#include +#include +#include #include #include -PMTextureMapEdit::PMTextureMapEdit( QWidget* parent, const char* name ) +PMTextureMapEdit::PMTextureMapEdit( TQWidget* parent, const char* name ) : Base( parent, name ) { m_pDisplayedObject = 0; @@ -36,27 +36,27 @@ PMTextureMapEdit::PMTextureMapEdit( QWidget* parent, const char* name ) void PMTextureMapEdit::createTopWidgets( ) { Base::createTopWidgets( ); - topLayout( )->addWidget( new QLabel( i18n( "Map values:" ), this ) ); - m_pNoChildLabel = new QLabel( i18n( "(No Child Objects)" ), this ); - m_pPureLinkLabel = new QLabel( i18n( "(Pure Link)" ), this ); + topLayout( )->addWidget( new TQLabel( i18n( "Map values:" ), this ) ); + m_pNoChildLabel = new TQLabel( i18n( "(No Child Objects)" ), this ); + m_pPureLinkLabel = new TQLabel( i18n( "(Pure Link)" ), this ); topLayout( )->addWidget( m_pNoChildLabel ); topLayout( )->addWidget( m_pPureLinkLabel ); - QHBoxLayout* hl = new QHBoxLayout( topLayout( ) ); - m_pEditLayout = new QVBoxLayout( hl ); + TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) ); + m_pEditLayout = new TQVBoxLayout( hl ); hl->addStretch( 1 ); } void PMTextureMapEdit::displayObject( PMObject* o ) { - QString str; + TQString str; if( o->isA( "TextureMapBase" ) ) { bool readOnly = o->isReadOnly( ); m_pDisplayedObject = ( PMTextureMapBase* ) o; - QValueList mv = m_pDisplayedObject->mapValues( ); - QValueList::Iterator vit = mv.begin( ); - QPtrListIterator eit( m_edits ); + TQValueList mv = m_pDisplayedObject->mapValues( ); + TQValueList::Iterator vit = mv.begin( ); + TQPtrListIterator eit( m_edits ); PMFloatEdit* edit; m_numValues = 0; @@ -78,7 +78,7 @@ void PMTextureMapEdit::displayObject( PMObject* o ) edit->setValue( *vit ); edit->setValidation( true, 0.0, true, 1.0 ); edit->setReadOnly( readOnly ); - connect( edit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) ); + connect( edit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) ); } m_numValues++; } @@ -115,9 +115,9 @@ void PMTextureMapEdit::saveContents( ) { if( m_numValues > 0 ) { - QPtrListIterator it( m_edits ); + TQPtrListIterator it( m_edits ); int i = 0; - QValueList values; + TQValueList values; for( ; ( i < m_numValues ) && it.current( ); ++i, ++it ) values.append( it.current( )->value( ) ); @@ -129,7 +129,7 @@ void PMTextureMapEdit::saveContents( ) bool PMTextureMapEdit::isDataValid( ) { - QPtrListIterator it( m_edits ); + TQPtrListIterator it( m_edits ); int i = 0; double last = 0.0; -- cgit v1.2.1