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/pmheightfieldedit.cpp | 60 +++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'kpovmodeler/pmheightfieldedit.cpp') diff --git a/kpovmodeler/pmheightfieldedit.cpp b/kpovmodeler/pmheightfieldedit.cpp index c5a65998..5f9346f0 100644 --- a/kpovmodeler/pmheightfieldedit.cpp +++ b/kpovmodeler/pmheightfieldedit.cpp @@ -20,18 +20,18 @@ #include "pmheightfield.h" #include "pmlineedits.h" -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include #include #include -PMHeightFieldEdit::PMHeightFieldEdit( QWidget* parent, const char* name ) +PMHeightFieldEdit::PMHeightFieldEdit( TQWidget* parent, const char* name ) : Base( parent, name ) { m_pDisplayedObject = 0; @@ -41,9 +41,9 @@ void PMHeightFieldEdit::createTopWidgets( ) { Base::createTopWidgets( ); - QHBoxLayout* hl = new QHBoxLayout( topLayout( ) ); - hl->addWidget( new QLabel( i18n( "Type:" ), this ) ); - m_pHeightFieldType = new QComboBox( false, this ); + TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) ); + hl->addWidget( new TQLabel( i18n( "Type:" ), this ) ); + m_pHeightFieldType = new TQComboBox( false, this ); hl->addWidget( m_pHeightFieldType ); hl->addStretch( 0 ); m_pHeightFieldType->insertItem( "gif" ); @@ -54,36 +54,36 @@ void PMHeightFieldEdit::createTopWidgets( ) m_pHeightFieldType->insertItem( "ppm" ); m_pHeightFieldType->insertItem( "sys" ); - hl = new QHBoxLayout( topLayout( ) ); - hl->addWidget( new QLabel( i18n( "File name:" ), this ) ); - m_pFileName = new QLineEdit( this ); + hl = new TQHBoxLayout( topLayout( ) ); + hl->addWidget( new TQLabel( i18n( "File name:" ), this ) ); + m_pFileName = new TQLineEdit( this ); hl->addWidget( m_pFileName ); - m_pChooseFileName = new QPushButton( this ); + m_pChooseFileName = new TQPushButton( this ); m_pChooseFileName->setPixmap( SmallIcon( "fileopen" ) ); hl->addWidget( m_pChooseFileName ); - hl = new QHBoxLayout( topLayout( ) ); - hl->addWidget( new QLabel( i18n( "Water level:" ), this ) ); + hl = new TQHBoxLayout( topLayout( ) ); + hl->addWidget( new TQLabel( i18n( "Water level:" ), this ) ); m_pWaterLevel = new PMFloatEdit( this ); m_pWaterLevel->setValidation( true, 0.0, true, 1.0 ); hl->addWidget( m_pWaterLevel ); hl->addStretch( 1 ); - m_pHierarchy = new QCheckBox( i18n( "Hierarchy" ), this ); + m_pHierarchy = new TQCheckBox( i18n( "Hierarchy" ), this ); topLayout( )->addWidget( m_pHierarchy ); - m_pSmooth = new QCheckBox( i18n( "Smooth" ), this ); + m_pSmooth = new TQCheckBox( i18n( "Smooth" ), this ); topLayout( )->addWidget( m_pSmooth ); - connect( m_pHeightFieldType, SIGNAL( activated( int ) ), - SLOT( slotTypeChanged( int ) ) ); - connect( m_pFileName, SIGNAL( textChanged( const QString& ) ), - SLOT( slotFileNameChanged( const QString& ) ) ); - connect( m_pChooseFileName, SIGNAL( clicked( ) ), - SLOT( slotFileNameClicked( ) ) ); - connect( m_pWaterLevel, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) ); - connect( m_pHierarchy, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) ); - connect( m_pSmooth, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) ); + connect( m_pHeightFieldType, TQT_SIGNAL( activated( int ) ), + TQT_SLOT( slotTypeChanged( int ) ) ); + connect( m_pFileName, TQT_SIGNAL( textChanged( const TQString& ) ), + TQT_SLOT( slotFileNameChanged( const TQString& ) ) ); + connect( m_pChooseFileName, TQT_SIGNAL( clicked( ) ), + TQT_SLOT( slotFileNameClicked( ) ) ); + connect( m_pWaterLevel, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) ); + connect( m_pHierarchy, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) ); + connect( m_pSmooth, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) ); } void PMHeightFieldEdit::displayObject( PMObject* o ) @@ -182,14 +182,14 @@ void PMHeightFieldEdit::slotTypeChanged( int ) emit dataChanged( ); } -void PMHeightFieldEdit::slotFileNameChanged( const QString& ) +void PMHeightFieldEdit::slotFileNameChanged( const TQString& ) { emit dataChanged( ); } void PMHeightFieldEdit::slotFileNameClicked( ) { - QString str = KFileDialog::getOpenFileName( QString::null, QString::null ); + TQString str = KFileDialog::getOpenFileName( TQString::null, TQString::null ); if( !str.isEmpty() ) { -- cgit v1.2.1