diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmbumpmapedit.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmbumpmapedit.cpp')
-rw-r--r-- | kpovmodeler/pmbumpmapedit.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/kpovmodeler/pmbumpmapedit.cpp b/kpovmodeler/pmbumpmapedit.cpp index d792cec2..f5de7a55 100644 --- a/kpovmodeler/pmbumpmapedit.cpp +++ b/kpovmodeler/pmbumpmapedit.cpp @@ -23,14 +23,14 @@ #include "pmpalettevalueedit.h" #include "pmvector.h" -#include <qwidget.h> -#include <qlayout.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qcheckbox.h> -#include <qpushbutton.h> -#include <qtooltip.h> +#include <tqwidget.h> +#include <tqlayout.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqcheckbox.h> +#include <tqpushbutton.h> +#include <tqtooltip.h> #include <ktabctl.h> #include <klocale.h> #include <kmessagebox.h> @@ -38,7 +38,7 @@ #include <kfiledialog.h> #include <kiconloader.h> -PMBumpMapEdit::PMBumpMapEdit( QWidget* parent, const char* name ) +PMBumpMapEdit::PMBumpMapEdit( TQWidget* parent, const char* name ) : Base( parent, name ) { m_pDisplayedObject = 0; @@ -46,14 +46,14 @@ PMBumpMapEdit::PMBumpMapEdit( QWidget* parent, const char* name ) void PMBumpMapEdit::createTopWidgets( ) { - QLabel* lbl; - QHBoxLayout* hl; + TQLabel* lbl; + TQHBoxLayout* hl; Base::createTopWidgets( ); - hl = new QHBoxLayout( topLayout( ) ); - lbl = new QLabel( i18n( "File type:" ), this ); - m_pImageFileTypeEdit = new QComboBox( this ); + hl = new TQHBoxLayout( topLayout( ) ); + lbl = new TQLabel( i18n( "File type:" ), this ); + m_pImageFileTypeEdit = new TQComboBox( this ); m_pImageFileTypeEdit->insertItem( "gif" ); m_pImageFileTypeEdit->insertItem( "tga" ); m_pImageFileTypeEdit->insertItem( "iff" ); @@ -66,22 +66,22 @@ void PMBumpMapEdit::createTopWidgets( ) hl->addWidget( lbl ); hl->addWidget( m_pImageFileTypeEdit ); - hl = new QHBoxLayout( topLayout( ) ); - lbl = new QLabel( i18n( "File name:" ), this ); - m_pImageFileNameEdit = new QLineEdit( this ); - m_pImageFileNameBrowse = new QPushButton( this ); + hl = new TQHBoxLayout( topLayout( ) ); + lbl = new TQLabel( i18n( "File name:" ), this ); + m_pImageFileNameEdit = new TQLineEdit( this ); + m_pImageFileNameBrowse = new TQPushButton( this ); m_pImageFileNameBrowse->setPixmap( SmallIcon( "fileopen" ) ); hl->addWidget( lbl ); hl->addWidget( m_pImageFileNameEdit ); hl->addWidget( m_pImageFileNameBrowse ); hl->addStretch( 1 ); - m_pOnceEdit = new QCheckBox( i18n( "Once" ), this ); + m_pOnceEdit = new TQCheckBox( i18n( "Once" ), this ); topLayout( )->addWidget( m_pOnceEdit ); - hl = new QHBoxLayout( topLayout( ) ); - lbl = new QLabel( i18n( "Interpolate:" ), this ); - m_pInterpolateTypeEdit = new QComboBox( this ); + hl = new TQHBoxLayout( topLayout( ) ); + lbl = new TQLabel( i18n( "Interpolate:" ), this ); + m_pInterpolateTypeEdit = new TQComboBox( this ); m_pInterpolateTypeEdit->insertItem( i18n( "None" ) ); m_pInterpolateTypeEdit->insertItem( i18n( "Bilinear" ) ); m_pInterpolateTypeEdit->insertItem( i18n( "Normalized" ) ); @@ -89,9 +89,9 @@ void PMBumpMapEdit::createTopWidgets( ) hl->addWidget( m_pInterpolateTypeEdit ); hl->addStretch( 1 ); - hl = new QHBoxLayout( topLayout( ) ); - lbl = new QLabel( i18n( "Map type:" ), this ); - m_pMapTypeEdit = new QComboBox( this ); + hl = new TQHBoxLayout( topLayout( ) ); + lbl = new TQLabel( i18n( "Map type:" ), this ); + m_pMapTypeEdit = new TQComboBox( this ); m_pMapTypeEdit->insertItem( i18n( "Planar" ) ); m_pMapTypeEdit->insertItem( i18n( "Spherical" ) ); m_pMapTypeEdit->insertItem( i18n( "Cylindrical" ) ); @@ -100,24 +100,24 @@ void PMBumpMapEdit::createTopWidgets( ) hl->addWidget( m_pMapTypeEdit ); hl->addStretch( 1 ); - m_pUseIndexEdit = new QCheckBox( i18n( "Use index" ), this ); + m_pUseIndexEdit = new TQCheckBox( i18n( "Use index" ), this ); topLayout( )->addWidget( m_pUseIndexEdit ); - hl = new QHBoxLayout( topLayout( ) ); - lbl = new QLabel( i18n( "Bump size:" ), this ); + hl = new TQHBoxLayout( topLayout( ) ); + lbl = new TQLabel( i18n( "Bump size:" ), this ); m_pBumpSizeEdit = new PMFloatEdit( this ); hl->addWidget( lbl ); hl->addWidget( m_pBumpSizeEdit ); hl->addStretch( 1 ); - connect( m_pImageFileTypeEdit, SIGNAL( activated( int ) ), SLOT( slotImageFileTypeChanged( int ) ) ); - connect( m_pMapTypeEdit, SIGNAL( activated( int ) ), SLOT( slotMapTypeChanged( int ) ) ); - connect( m_pInterpolateTypeEdit, SIGNAL( activated( int ) ), SLOT( slotInterpolateTypeChanged( int ) ) ); - connect( m_pImageFileNameBrowse, SIGNAL( clicked( ) ), SLOT( slotImageFileBrowseClicked( ) ) ); - connect( m_pImageFileNameEdit, SIGNAL( textChanged( const QString& ) ), SLOT( slotImageFileNameChanged( const QString& ) ) ); - connect( m_pOnceEdit, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) ); - connect( m_pUseIndexEdit, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) ); - connect( m_pBumpSizeEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) ); + connect( m_pImageFileTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotImageFileTypeChanged( int ) ) ); + connect( m_pMapTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotMapTypeChanged( int ) ) ); + connect( m_pInterpolateTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotInterpolateTypeChanged( int ) ) ); + connect( m_pImageFileNameBrowse, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotImageFileBrowseClicked( ) ) ); + connect( m_pImageFileNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( slotImageFileNameChanged( const TQString& ) ) ); + connect( m_pOnceEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) ); + connect( m_pUseIndexEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) ); + connect( m_pBumpSizeEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) ); } void PMBumpMapEdit::displayObject( PMObject* o ) @@ -300,14 +300,14 @@ void PMBumpMapEdit::slotMapTypeChanged( const int /*a*/ ) emit dataChanged( ); } -void PMBumpMapEdit::slotImageFileNameChanged( const QString& /*a*/ ) +void PMBumpMapEdit::slotImageFileNameChanged( const TQString& /*a*/ ) { emit dataChanged( ); } void PMBumpMapEdit::slotImageFileBrowseClicked( ) { - QString str = KFileDialog::getOpenFileName( QString::null, QString::null ); + TQString str = KFileDialog::getOpenFileName( TQString::null, TQString::null ); if( !str.isEmpty() ) { |