diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /kpovmodeler/pmvectoredit.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmvectoredit.cpp')
-rw-r--r-- | kpovmodeler/pmvectoredit.cpp | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/kpovmodeler/pmvectoredit.cpp b/kpovmodeler/pmvectoredit.cpp index 7b9b6568..5140f297 100644 --- a/kpovmodeler/pmvectoredit.cpp +++ b/kpovmodeler/pmvectoredit.cpp @@ -28,11 +28,11 @@ PMVectorEdit::PMVectorEdit( const TQString& descriptionX, const TQString& descriptionY, - TQWidget* parent, const char* name ) - : TQWidget( parent, name ) + TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { unsigned int i; - TQHBoxLayout* layout; + TQHBoxLayout* tqlayout; TQLabel* label; m_edits.resize( 2 ); @@ -43,34 +43,34 @@ PMVectorEdit::PMVectorEdit( const TQString& descriptionX, TQT_SLOT( slotTextChanged( const TQString& ) ) ); } - layout = new TQHBoxLayout( this ); + tqlayout = new TQHBoxLayout( this ); if( !descriptionX.isEmpty( ) ) { label = new TQLabel( descriptionX, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[0] ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( m_edits[0] ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); if( !descriptionY.isEmpty( ) ) { label = new TQLabel( descriptionY, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[1] ); + tqlayout->addWidget( m_edits[1] ); } PMVectorEdit::PMVectorEdit( const TQString& descriptionX, const TQString& descriptionY, const TQString& descriptionZ, - TQWidget* parent, const char* name ) - : TQWidget( parent, name ) + TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { unsigned int i; - TQHBoxLayout* layout; + TQHBoxLayout* tqlayout; TQLabel* label; m_edits.resize( 3 ); @@ -81,44 +81,44 @@ PMVectorEdit::PMVectorEdit( const TQString& descriptionX, TQT_SLOT( slotTextChanged( const TQString& ) ) ); } - layout = new TQHBoxLayout( this ); + tqlayout = new TQHBoxLayout( this ); if( !descriptionX.isEmpty( ) ) { label = new TQLabel( descriptionX, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[0] ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( m_edits[0] ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); if( !descriptionY.isEmpty( ) ) { label = new TQLabel( descriptionY, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[1] ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( m_edits[1] ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); if( !descriptionZ.isEmpty( ) ) { label = new TQLabel( descriptionZ, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[2] ); + tqlayout->addWidget( m_edits[2] ); } PMVectorEdit::PMVectorEdit( const TQString& descriptionA, const TQString& descriptionB, const TQString& descriptionC, const TQString& descriptionD, - TQWidget* parent, const char* name ) - : TQWidget( parent, name ) + TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { unsigned int i; - TQHBoxLayout* layout; + TQHBoxLayout* tqlayout; TQLabel* label; m_edits.resize( 4 ); @@ -129,42 +129,42 @@ PMVectorEdit::PMVectorEdit( const TQString& descriptionA, TQT_SLOT( slotTextChanged( const TQString& ) ) ); } - layout = new TQHBoxLayout( this ); + tqlayout = new TQHBoxLayout( this ); if( !descriptionA.isEmpty( ) ) { label = new TQLabel( descriptionA, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[0] ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( m_edits[0] ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); if( !descriptionB.isEmpty( ) ) { label = new TQLabel( descriptionB, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[1] ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( m_edits[1] ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); if( !descriptionC.isEmpty( ) ) { label = new TQLabel( descriptionC, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[2] ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( m_edits[2] ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); if( !descriptionD.isEmpty( ) ) { label = new TQLabel( descriptionD, this ); - layout->addWidget( label ); - layout->addSpacing( KDialog::spacingHint( ) ); + tqlayout->addWidget( label ); + tqlayout->addSpacing( KDialog::spacingHint( ) ); } - layout->addWidget( m_edits[3] ); + tqlayout->addWidget( m_edits[3] ); } void PMVectorEdit::setVector( const PMVector& v, int precision ) |